# Tích hợp Haravan V2

## 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="/files/tmqIVHPeEijzuYpKty4h" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/JAO7W5PWYARtWUMpvfGU" 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="/files/0eFtCeSFTLqDqNdHOxEP" 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="/files/APdKQFpLlt9NrL9J71dK" 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="/files/CWR66NYFV2j9F8TJ2tyb" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/ht8MGujXcXLpg3YzrXu7" 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="/files/T4Vg1svWdl9r4WWXvF4L" 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="/files/SIDku31wmOwTKwKrsm7h" 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="/files/xez7xi6Xzv01ixSN8sni" 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="/files/pAihSsNPL8r1tLZUkUD5" 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="/files/JspWXwlhx1XYX2L11wQO" 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="/files/K8HwPunWhHhjtzui8x9i" 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="/files/SZY9mtFow4MbkYBBEBp6" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.casso.vn/tich-hop/haravan_v2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
