ABA QR API
1. Introduction
The ABA QR API is a payment solution that allows businesses to generate dynamic QR codes for customers to scan and pay using ABA KHQR, WeChat Pay, or Alipay.
It enables fast and cashless transactions across multiple digital wallets and banking apps.
Retail store solutions
Self kiosk service
Parking systems
Massage chair nodes
Smart vending slots
Self laundry service
2. Set up your QR display UI
To ensure a smooth payment experience, your platform must include a UI to accommodate QR payment acceptance. This includes:
- A screen for customers to choose the payment options you offer (ABA PAY, WeChat or Alipay).
- An area to display the generated QR code for payment
- A confirmation/success screen after the payment is completed.
You must follow PayWay QR payment display guidelines to ensure proper QR placement.
3. Integration steps
Before you start, make sure you have the following:
- PayWay Sandbox Account – Register here to test transactions.
- Sandbox Merchant ID & API Key – You will receive these via email after registering for the sandbox.
To integrate QR on Display, follow these steps:
Use the QR Payment API to generate a payment QR code and display it where customers can scan and pay.
Upon a successful request, the API will respond with a JSON object containing all necessary information, which you can display in your preferred payment interface.
Sample Response
Customize QR Image Template (Optional)
The qrImage comes with various options to suit your needs. Please check API document (QR API) on how to customize the qrImage.
The QR images included with the templates are high-resolution and can be up to 0.5 MB in size, which may cause network issues during download.
If your production environments has internet constraints or if network optimization is needed, we recommend using the QR string to generate the QR code on your end. Use the KHQR frame template as a static frame for display.
Once a payment is made using the QR code, the payment gateway will send a payment notification to your callback_url.
Your callback_url must accept HTTP POST method.
Here is the sample response of callback notification:
Payment transaction ID generated by the payment gateway.Max. Length: 20
Transaction approval code.Length: 6
Request status code.Value: 0
Additional return parameters encoded as a string containing order details and metadata.
Original transaction amount before discount.
Original transaction currency.eg. USD or KHR
Amount that the customer has paid.
Payment currency that the customer used to pay.eg. USD or KHR
Amount that customer suppose to pay after discount.
Discounted amount and its currency follow original currency.
Created date of the transaction in payment gateway database.Format: YYYY-MM-DD HH:MM:SS
Payer's first name.
Payer's last name.
Payer's email.
Payer's phone number.
Unique booking entry reference number from ABA Core banking system.
Payment method that the customer used to make payment. Possible values:
ABA Pay— Transaction made with ABA Account (ABA Mobile)Alipay— Transaction made with AlipayWechat— Transaction made with WeChat payKHQR— Transaction made with KHQRVISA— Transaction made with Visa cardMC— Transaction made with MastercardJCB— Transaction made with JCB cardCUP— Transaction made with UPI card
Masked ABA Account Number or Masked Card PAN. For other payment options, it will be blank.
If payment is made with ABA PAY, it will show ABA Bank and if payment made using KHQR it will show issuer bank name.
Possible values:
ONUS— Transaction is made with ABA bank cardOFFUS_DOMESTIC— Transaction is made with other local bank cardOFFUS_INTERNATIONAL— Transaction is made with other international bank card
In addition to verifying the payment status via callback_url, you must also use the Check transaction API to ensure the payment is successfully marked as PAID and was processed correctly.