Developer Suite
Register Sandbox
Register Sandbox
  1. ABA QR API
  • Overview
  • API Endpoints
  • Ecommerce Checkout
    • Purchase
      POST
    • Get a transaction details
      POST
    • Close transaction
      POST
    • Check transaction
      POST
    • Refund API
      POST
    • Get transaction list
      POST
    • Exchange rate
      POST
  • Checkout Plugins
    • Prestashop
    • Woocommerce
  • Credentials on File
    • Link Account
      POST
    • Link Card
      POST
    • Purchase using token
      POST
    • Remove account token
      POST
    • Remove card token
      POST
    • Get linked account details
      POST
  • ABA QR API
    • QR API
      POST
  • Payment Link
    • Create payment link
      POST
    • Get payment link details
      POST
  • Pre-auth
    • Complete pre-auth transactions
      POST
    • Complete pre-auh transaction with payout
      POST
    • Cancel pre-purchase transaction
      POST
  • Payout
    • Payout
    • Update a beneficiary status
    • Add a beneficiary to whitelist
  • KHQR Guideline
  • Resources
  1. ABA QR API

QR API

POST
/api/payment-gateway/v1/payments/generate-qr
Support both online/instore merchant
Supported payment options
Transaction currency KHR: ABA PAY, KHQR
Transaction curency USD: ABA PAY, KHQR, WeChat and Alipay

Request

Header Params

Body Params application/json

Example
{
    "req_time": "20250312095439",
    "merchant_id": "keng.dara.online",
    "tran_id": "20250311033231",
    "first_name": "ABA",
    "last_name": "Bank",
    "email": "aba.bank@gmail.com",
    "phone": "012345678",
    "amount": 0.01,
    "purchase_type": "purchase",
    "payment_option": "abapay_khqr",
    "items": "W3sibmFtZSI6IicgVU5JT04gU0VMRUNUIG51bGwsIHZlcnNpb24oKSwgbnVsbCAtLSIsInF1YW50aXR5IjozLCJwcmljZSI6MTAwLjAxfV0=",
    "currency": "USD",
    "callback_url": "aHR0cHM6Ly9hcGkuY2FsbGJhY2suY29tL25vdGlmeQ==",
    "return_deeplink": null,
    "custom_fields": null,
    "return_params": null,
    "payout": null,
    "lifetime": 6,
    "qr_image_template": "template3_color",
    "hash": "ZyDmMe/kznbY2e...ZB6tMnqv57V06T13du8807dcbPTg=="
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://checkout-sandbox.payway.com.kh//api/payment-gateway/v1/payments/generate-qr' \
--header 'Content-Type: application/json' \
--data-raw '{
    "req_time": "20250312095439",
    "merchant_id": "keng.dara.online",
    "tran_id": "20250311033231",
    "first_name": "ABA",
    "last_name": "Bank",
    "email": "aba.bank@gmail.com",
    "phone": "012345678",
    "amount": 0.01,
    "purchase_type": "purchase",
    "payment_option": "abapay_khqr",
    "items": "W3sibmFtZSI6IicgVU5JT04gU0VMRUNUIG51bGwsIHZlcnNpb24oKSwgbnVsbCAtLSIsInF1YW50aXR5IjozLCJwcmljZSI6MTAwLjAxfV0=",
    "currency": "USD",
    "callback_url": "aHR0cHM6Ly9hcGkuY2FsbGJhY2suY29tL25vdGlmeQ==",
    "return_deeplink": null,
    "custom_fields": null,
    "return_params": null,
    "payout": null,
    "lifetime": 6,
    "qr_image_template": "template3_color",
    "hash": "ZyDmMe/kznbY2e...ZB6tMnqv57V06T13du8807dcbPTg=="
}'

Responses

🟢200Success
application/json
Body

Example
{
    "qrString": "00020101021230510016abaakhppxxx@abaa01151250212145328460208ABA Bank52048249530384054040.015802KH5925OLD ME 25 CHAR WINNER IP",
    "qrImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAOC0lEQVR4nO2deahV1RfHl6ZlaaZ",
    "abapay_deeplink": "abamobilebank://ababank.com?type=payway&qrcode=00020101021230510016abaakhppxxx%40abaa01151250212145328460208ABA+Bank5",
    "app_store": "https://itunes.apple.com/al/app/aba-mobile-bank/id968860649?mt=8",
    "play_store": "https://play.google.com/store/apps/details?id=com.paygo24.ibank",
    "amount": 0.01,
    "currency": "USD",
    "status": {
        "code": "0",
        "message": "Success.",
        "trace_id": "b9f93f45b49f08e26dfcfb8c2da396c6"
    }
}
Previous
ABA QR API
Next
Payment Link