> For the complete documentation index, see [llms.txt](https://huongdan.cnvloyalty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huongdan.cnvloyalty.com/tinh-nang/cau-hinh/thanh-toan/tich-hop-vnpay.md).

# Tích hợp VNPAY

## Những điều cần lưu ý

1. Cần **kiểm tra kỹ** và **nhập đúng** các thông tin kết nối VNPAY ở Loyalty Hub
2. Sau khi kết nối, vui lòng **không thay đổi thông tin** trong quá trình CNV đồng bộ dữ liệu
3. Tài khoản kết nối phải là Admin của Loyalty Hub

## Kết nối với VNPAY

### Bước 1: Lấy thông tin kết nối ở VNPAY

1. [Liên hệ VNPAY](https://vnpay.vn/lien-he) ký hợp đồng
2. VNPAY sẽ cung cấp thông tin
   * Terminal ID
   * Secret Key

### Bước 2: Vào Cấu hình ➝ Thanh toán

![](/files/-MfIAaLBvenD0wgV0uHu)

### Bước 3: Chọn Phương thức thanh toán&#x20;

1. Chọn Kết nối
2. Chọn Phương thức thanh toán ➝ Cổng VNPay

![](/files/-MfIDCunILF0gRGvggGG)

### Bước 4: Nhập thông tin đã lấy ở bước 1

* Tên phương thức: tên phương thức thanh toán
* Terminal ID
* Secret Key

![](/files/-Mg5l_ADICyB8nMXje56)

### Bước 6: Chọn Môi trường thử nghiệm (nếu có)

* Nhập địa chỉ Email để kiểm tra kết nối giữa Loyalty Hub với VNPAY

![](/files/-Mg5mqBDRrFVe95gLU63)

### Bước 7: Kích hoạt VNPAY

![](/files/-Mg5n1NPPAn4YoFbLc9V)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://huongdan.cnvloyalty.com/tinh-nang/cau-hinh/thanh-toan/tich-hop-vnpay.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
