# 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: 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://huongdan.cnvloyalty.com/tinh-nang/cau-hinh/thanh-toan/tich-hop-vnpay.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.
