Điền thông tin
để xem preview
Ngân hàng—
Số TK—
Số tiền—
Nội dung—
⬇ Tải về PNG
Nhúng ảnh QR trực tiếp bằng URL — không cần API key, không cần backend.
https://qr.xgate.vn/img/{BANK_CODE}/{SO_TAI_KHOAN}/{TEMPLATE}.png
?amount=100000
&desc=Thanh+toan+DH001
&name=NGUYEN+VAN+A
https://qr.xgate.vn/img/VCB/1234567890/compact.png?amount=50000
https://qr.xgate.vn/img?acc=1234567890&bank=VCB&amount=50000&des=Test
<img
src="https://qr.xgate.vn/img/VCB/1234567890/compact.png?amount=100000"
alt="QR chuyển khoản"
width="300"
/>
📦 Template: compact (QR + viền), qronly (chỉ mã QR)
REST API yêu cầu API Key qua header Authorization: Bearer <key>
curl -X POST https://qr.xgate.vn/api/v1/qr/generate \
-H "Authorization: Bearer xg_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"bank_code": "VCB",
"account_no": "1234567890",
"amount": 100000,
"description": "Thanh toan DH001"
}'
{
"success": true,
"data": {
"qr_url": "https://qr.xgate.vn/img/...",
"emvco_string": "000201010212...",
"qr_type": "dynamic"
}
}
curl https://qr.xgate.vn/api/v1/banks
curl https://qr.xgate.vn/api/v1/health