Base URL: https://checkout-sandbox.payway.com.kh/Copy to clipboard
POST

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 callback_url.

Link ABA Account Flow

Refer to the step-by-step integration guide here for detailed instructions.

Request

Header Params
stringrequired

Example: application/json

Body Params application/json

stringrequired

Your request id. The request id shall be unique from your side. This id will be use to obtain the token details in the future. We only return the last record. Length from 5 to 24 characters long, consisting only of letters (uppercase and lowercase) and numbers, with no special characters or spaces allowed.

stringrequired

Request date and time in UTC format as YYYYMMDDHHmmss.

stringrequired

A unique merchant key which provided by ABA Bank.

<= 20 characters
stringrequired

This is your consumer identification number, which is a unique code used to identify you in the system. The string must be between 5 and 24 characters long and can only contain letters and numbers โ€” no spaces or special characters.

string nullable optional

After the user links their account on ABA Mobile, they will see a success screen with a Done button. Your return deep link will be embedded in this button. When the user taps Done, they will be redirected to your app. The return deeplink must be encode with Base64.

PHP Sample Code

$deeplink_format = array(
  "ios_scheme" => "{YOUR IOS DEEPLINK URL}",
  "android_scheme" => "{YOUR ANDROID DEEPLINK URL}",
);
$return_deeplink = base64_encode(json_encode($deeplink_format));
stringrequired

Possible value CITI_FLEX and CITO_FLEX.

stringrequired

Transaction currency, the value is based on merchant profile. Possible value KHR and USD.

string nullable optional

Once the user links their account, the token details and other important information will be sent to the URL specified here. This field is optional. If left empty or you don't pass the value, the system will use the pushback_url defined in your profile by default. If you choose to provide a custom URL, please ensure that the domain is whitelisted in your merchant profile. Must be base64-encoded.

stringrequired

Base64 encode of hash hmac sha512 encryption.

PHP Sample Code

// public key provided by ABA Bank
$api_key = "API KEY PROVIDED BY ABA BANK";

// Prepare the data to be hashed
$b4hash = $merchant_id . $request_time . $ctid . $return_deeplink . $callback_url . $request_id . $token_flag . $currency;

// Generate the HMAC hash using SHA-512 and encode it in Base64
$hash = base64_encode(hash_hmac('sha512', $b4hash, $api_key, true));

Example

{
  "request_id": "",
  "request_time": "",
  "merchant_id": "",
  "ctid": "",
  "return_deeplink": "",
  "token_flag": "",
  "currency": "",
  "callback_url": "",
  "hash": ""
}
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R

Responses