> For the complete documentation index, see [llms.txt](https://minecraft.card2k.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minecraft.card2k.com/huong-dan-setup-nap-banking/cau-hinh-plugin.md).

# Cấu hình Plugin

> ✨ Cấu hình Plugin

Truy cập file `banking.yml`&#x20;

{% hint style="info" %}
Bạn chỉ được sử dụng 1 trong 2 nhà cung cấp **Sepay** hoặc **Thueapibank**
{% endhint %}

> 1.1. Nếu bạn dùng [SePay](https://sepay.vn/).&#x20;

Điền các thông tin sau: `type` và `api_token`.\
Trường `history_key` để trống.\
`api_token` sử dụng token đã tạo ở [bước 1](/huong-dan-setup-nap-banking/tao-api-ket-noi/ncc-sepay.md).

```yml
# Gateway Configuration
# Chon loai gateway de kiem tra lich su giao dich
gateway:
  type: sepay     # Dien "sepay"
  history_key: "" # De trong

# API Token
# - Lay API token tu trang quan tri Sepay: https://my.sepay.vn
api_token: "<YOUR_API_TOKEN>"
```

> 1.2 Nếu bạn dùng [ThueApiBank](https://thueapibank.vn/)

Điền các thông tin sau: `type` , `history_key` và `api_token` \
Trường `history_key` điền theo tài liệu **API V2**, nếu bạn không rõ [Bấm vào đây xem hướng dẫn](/mot-so-link-anh-em-se-can/khac/hd-lay-history_key.md)\
`api_token` sử dụng token đã tạo ở [bước 1](/huong-dan-setup-nap-banking/tao-api-ket-noi/ncc-thueapibank.md).

```yml
# Gateway Configuration
# Chon loai gateway de kiem tra lich su giao dich
gateway:
  type: thueapibank                  # Dien "thueapibank"
  
  # Day la phan duong dan API v2, vi du: "historyapiacbv2", "historyapivietcombank"
  history_key: "<YOUR_KEY_API_BANK>" 

# API Token
# - Lay API token tu trang quan tri ThueAPIBank
api_token: "<YOUR_API_TOKEN>"
```

> 2. **Cấu hình tài khoản ngân hàng nhận tiền.**&#x20;

`Bank_name`: [Bấm vào đây](https://qr.sepay.vn/banks.json), tìm đến ngân hàng của bạn, **copy code** và điền vào.

<figure><img src="/files/A8HuwI4it8VPe7OwiIlE" alt=""><figcaption><p>Ví dụ lấy bank_name ngân hàng TPBank</p></figcaption></figure>

```yml
# Bank Account Information
# Thong tin tai khoan ngan hang nhan tien
bank_account:
  account_number: "SO_TAI_KHOAN"
  bank_name: "CODE_NGAN_HANG"
```

> 2. **✨ Tắt và mở lại Server**, hạn chế sử dụng `/napthe reload`

<figure><img src="/files/5J4yKsq2YbeIiKCoDPEn" alt=""><figcaption></figcaption></figure>

> 3. **Kiểm tra Plugin hoạt động đúng**, truy cập server

Sử dụng lệnh `/napbank gui` hoặc `/napbank <số tiền>`&#x20;

<figure><img src="/files/FKJ7Qu06zQy9qOoYkIf9" alt=""><figcaption><p>lệnh /napbank gui</p></figcaption></figure>

<figure><img src="/files/1tKTjS51zhIC6ceHu8wr" alt=""><figcaption><p>Chọn số tiền bạn cần nạp</p></figcaption></figure>

<figure><img src="/files/HeEkb5SrwjTqmnWmaLnw" alt=""><figcaption><p>Thông tin tạo lệnh nạp sau khi chọn số tiền</p></figcaption></figure>

<figure><img src="/files/jwu0i13L3fPhDFDXRQDp" alt=""><figcaption><p>Thông tin QR ngân hàng nạp</p></figcaption></figure>

Hãy chuyển khoản đến mã QR để kiểm tra hệ thống hoạt động ổn định.

<figure><img src="/files/WsJD8K2eWn6aicVqDxWn" alt=""><figcaption><p>Sau khi chuyển khoản thành công, nhận thưởng.</p></figcaption></figure>


---

# 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:

```
GET https://minecraft.card2k.com/huong-dan-setup-nap-banking/cau-hinh-plugin.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.
