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

The API returns HTML, allowing users to enter their credit/debit card details (Visa, Mastercard, JCB, and UPI) to link their card to your platform. Once the user has completed the linking process, PayWay will send the account details and token to the merchant via the callback_url.

Link Card Flow

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

Request

Header Params
stringrequired

Example: multipart/form-data

Body Params multipart/form-data

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.

stringrequired

Possible value CITI_FLEX, CITO_FLEX. Make sue the flag is enable on your profile

stringrequired

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

stringoptional

Once the user links their card, the token details and other important information will be sent to the URL specified here. This field is optional. If left empty, 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.

stringoptional

After linking their card, the user will see a success screen with a Done button. Your continue_success_url will be embedded in this button. When the user taps Done, they will be redirected to your platform.

Please ensure that the continue_success_url is 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 . $callback_url . $request_id . $token_flag . $frequency . $amount . $currency . $continue_success_url ;

// 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": "",
  "token_flag": "",
  "currency": "",
  "callback_url": "",
  "continue_success_url": "",
  "hash": ""
}
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R

Responses