> For the complete documentation index, see [llms.txt](https://docs.casso.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.casso.vn/tich-hop/haravan_v2.md).

# Tích hợp Haravan V2

Mỗi khi phát sinh một giao dịch mới, dựa trên mã đơn hàng và số tiền người dùng đã chuyển, Casso sẽ tự động xác nhận thanh toán và chuyển trạng thái đơn hàng trực tiếp trên website Haravan.

## Hướng dẫn lấy Token (API Key) từ Haravan

**Bước 1: Truy cập vào admin**

Truy cập vào **trang** **admin** trên website Haravan của bạn => **Ứng dụng** => **Ứng dụng riêng**

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FJOSkqxlL06ekozoTo2Ay%2FScreenshot%202025-07-07%20at%2009.28.36.png?alt=media&amp;token=63fb6132-05b8-477b-8bab-150fd7674306" alt=""><figcaption></figcaption></figure>

**Bước 2: Nhấn nút Tạo ứng dụng riêng**

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FxXehZuCJ1h1zaP6ptuUe%2FScreenshot%202025-07-07%20at%2009.30.25.png?alt=media&amp;token=0a2676c9-fb8b-431a-ae00-6bb9ce685df5" alt=""><figcaption></figcaption></figure>

**Bước 3: Cấu hình Ứng dụng**

Chỉnh sửa lại cấu hình: cho phép đọc ghi ở đơn hàng => Lưu lại.

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FycAyeGZnAHECgCgMmoSc%2FScreenshot%202025-07-07%20at%2009.31.05.png?alt=media&amp;token=bc608b62-c490-4b94-ac5b-2f0cc5fb4201" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Chú ý: Lưu Token của ứng dụng để bước tiếp theo dán vào API Key của Casso Flow.
{% endhint %}

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FqKIhSTLaUVUAoQ9wTpR5%2FScreenshot%202025-07-07%20at%2009.53.28.png?alt=media&amp;token=d47d81e1-0697-4788-b4b6-6c7e790c1205" alt=""><figcaption></figcaption></figure>

## Cấu hình tích hợp Casso Flow vào Haravan <a href="#cau-hinh-tich-hop-casso-vao-haravan" id="cau-hinh-tich-hop-casso-vao-haravan"></a>

Truy cập vào Casso Flow => Kho ứng dụng => Chọn Ứng dụng Haravan V2 trên danh sách hiển thị hoặc trong kết quả tìm kiếm từ khóa haravan.

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FdC63otJQbouWrubR9vXp%2FScreenshot%202025-07-07%20at%2009.33.56.png?alt=media&amp;token=277c04d2-5e51-41d6-801e-45a0b38c38a0" alt=""><figcaption></figcaption></figure>

Chọn ngân hàng nhận thanh toán trên Haravan.

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FXCEKQjSd8fW0T22Wx0Uc%2FScreenshot%202025-07-07%20at%2009.34.26.png?alt=media&amp;token=a686bbab-1a18-45eb-828f-2605e09aceae" alt=""><figcaption></figcaption></figure>

Nhập Token (tạo từ Haravan ở Bước 3) vào trường API Key trên cửa sổ tích hợp của Casso Flow => Thiết lập **Tiền tố, Hậu tố.**

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FvR8MaOYiEZCVP0CZjsNv%2FScreenshot%202025-07-07%20at%2009.35.42.png?alt=media&amp;token=ffdf59f3-ff03-4fc3-9583-eded3a5c520f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Khách hàng cần thiết lập **Tiền tố, Hậu tố** trên tích hợp tương ứng với thông tin Tiền tố, Hậu tố đơn hàng trên Haravan.
{% endhint %}

Nhấn nút **Tiếp tục => Gọi thử => Lưu tích hợp.**

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FhKcpYsFoviuzVmekSmK1%2FScreenshot%202025-07-07%20at%2009.36.05.png?alt=media&amp;token=a44dc7e6-6b3e-46d7-a142-a4e406a37564" alt=""><figcaption></figcaption></figure>

## Thiết lập phương thức thanh toán trên Haravan

Vào trang **Admin của Haravan** => **Cấu hình** => **Phương thức thanh toán.**

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FCT7lEhAyAnuUc4189Kyx%2FScreenshot%202025-07-07%20at%2009.37.01.png?alt=media&amp;token=2cbb1822-3e8a-466f-ac53-b8524e8f0984" alt=""><figcaption></figcaption></figure>

Ở phương thức thanh toán Haravan QR, nhấn nút **Thêm tài khoản**

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FV3ZQ3ZU4o3oXZ70kPaQ3%2FScreenshot%202025-07-07%20at%2009.37.39.png?alt=media&amp;token=419ab020-b6c2-4902-9709-875eb75617a5" alt=""><figcaption></figcaption></figure>

Chọn **Ngân hàng**, nhập **Số tài khoản** và **Tên tài khoản ⇒ Kết nối**

{% hint style="info" %}
Ngân hàng và Số tài khoản phải trùng với thông tin Ngân hàng, Số tài khoản đã chọn ở bước thiết lập khi tạo tích hợp Haravan V2 ở phần Cấu hình tích hợp Casso Flow vào Haravan.
{% endhint %}

{% hint style="warning" %}
Đối với ngân hàng MBBank (hoặc các ngân hàng khác có chú thích Xác nhận thanh toán tự động), bạn cần **bỏ check** ở thiết lập ***Cho phép Haravan nhận thông tin thanh toán từ ngân hàng khi khách hàng hoàn tất quét QR thanh toán đơn*** để không phát sinh thêm chi phí.
{% endhint %}

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FCPW4qd4TQTmaaz4zyrsA%2FScreenshot%202025-07-07%20at%2009.38.27.png?alt=media&amp;token=8ae4d5a8-0501-4aaf-9abd-85992c3a2544" alt=""><figcaption></figcaption></figure>

Ở trang Checkout, chọn phương thức thanh toán **Chuyển khoản qua QR - Tên ngân hàng**

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FgY6zITCz1Zk3L4cNxk1P%2FScreenshot%202025-07-07%20at%2009.40.49.png?alt=media&amp;token=2a4dabae-5f5d-4d18-aecb-004fe1366de1" alt=""><figcaption></figcaption></figure>

Sau khi đặt hàng thành công, quét mã QR để thanh toán chuyển khoản.

<figure><img src="https://3793022392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJWdrbQGvu13ZB9h7as%2Fuploads%2FlEuG9y4mwGTxcbyAIynP%2FScreenshot%202025-07-07%20at%2009.42.48.png?alt=media&amp;token=73147551-a813-4e01-8dbc-2dc0fd80181a" alt=""><figcaption></figcaption></figure>
