Developer Suite
Register Sandbox
Register Sandbox
  1. Credentials on File
  • 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. Credentials on File

Link Account

POST
/api/aof/request-qr
The API returns a QR code or an ABA Mobile deeplink, enabling users to either scan the QR code or use the deeplink to automatically launches the ABA Mobile app and prompts the customer to select an ABA account to link to your platform. Once the user finished linking, PayWay will send pushback account details and token to the merchant through the return_url.
💡
Before using this API, please make sure your profile has enabled Account on File feature.
If your merchant profile has not enabled this feature yet, please contact our merchant digital support (digitalsupport@ababank.com) for sandbox profile, and for a production merchant profile, please contact our merchant acquisition team (paywaysales@ababank.com).

Request

Header Params

Body Params application/json

Example
{
    "req_time": "20210723080525",
    "merchant_id": "ec000002",
    "return_param": "REQ0012",
    "return_url": "RBqpuvSB7BA...CX+X1Sxtg4U+==",
    "hash": "waNDRBqpuvSBACX...3+cOwJQn/eHYw=="
}

Request 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/aof/request-qr' \
--header 'Content-Type: application/json' \
--data-raw '{
    "req_time": "20210723080525",
    "merchant_id": "ec000002",
    "return_param": "REQ0012",
    "return_url": "RBqpuvSB7BA...CX+X1Sxtg4U+==",
    "hash": "waNDRBqpuvSBACX...3+cOwJQn/eHYw=="
}'

Responses

🟢200OK
application/json
Body

Examples
{
    "status": {
        "code": "00",
        "message": "QR generated successfully"
    },
    "deeplink": "abamobilebank://ababank.com?type=account_on_file&qrcode=ABAAOF%2BhEGxkym0GCTuGTSatzgFses",
    "qr_string": "ABAAOF+hEGxkym0GCTuGTSatzgFsesgxkuw+8P0J3qJEbdUOWAMN0PdBi2Q/+xEVex6SbF19enqLB2xU46jTzVY",
    "qr_image": "https://payway-staging.ababank.com/assets/abaqr/abaqr-8f89f2395ad495aba3a15e70a6e68c5616",
    "expire_in": 1627113926
}
Previous
Credentials on File
Next
Link Card