QR API
- Support both online/instore merchant
- Supported payment options
- Transaction currency KHR: ABA PAY, KHQR
- Transaction curency USD: ABA PAY, KHQR, WeChat and Alipay
Request
Example: application/json
Body Params application/json
Request date and time in UTC format as YYYYMMDDHHmmss.
A unique merchant key which provided by ABA Bank.
This is the unique transaction ID that identifies the transaction.
Payer's first name.
Payer's last name.
Payer's email address.
Payer's phone number.
The total transaction amount must be at least 100 KHR or 0.01 USD and cannot be null.
Supported transaction currencies: KHR and USD. Not case-sensitive.
Supported values: pre-auth and purchase. If the merchant does not provide a value, the default will be purchase.
Note: Alipay & WeChat do not support pre-auth.
Supported payment options:
abapay_khqr: Payway will response ABA KHQR.wechat: PayWay will respond with a WeChat QR (only for USD transactions).alipay: PayWay will respond with an Alipay QR (only for USD transactions).
A Base64-encoded JSON array describing the items being purchased. It supports up to 50 line items with no character limit.
Note: This is only description/remark. The price or quantity in this info will not be used for calculation or any validation purposes
PHP Sample Code
URL to receive callbacks upon payment completion, encrypted with Base64.
PHP Sample Code
PHP Sample Code
Additional custom fields to attach to the QR, encrypted with Base64.
PHP Sample Code
Additional information to include in the pushback once the payment is completed.
PHP Sample Code
Payout instructions in a Base64-encoded JSON string.
PHP Sample Code
Transaction lifetime in minutes. Default: 30 days.
- Minimum: 3 mins
- Maximum: 120 days
The QR image comes with various options to suit your needs. Please refer to the link below for details templates.
Base64 encode of hash hmac sha512 encryption of concatenated values req_time, merchant_id, tran_id, amount, items, first_name, last_name, email, phone, purchase_type, payment_option, callback_url, return_deeplink, currency, custom_fields, return_params, payout, lifetime, and qr_image_template
PHP Sample Code
Example