Renew Token

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

Account tokens linked with the CITI_FLEX or CITO_FLEX flags will expire 90 days after their initial linking, renewal, or the last successful transaction—whichever is most recent. There are several ways for customers to renew the token:

  • ABA Mobile App: Users can view expired tokens in the ABA Mobile app and initiate the renewal directly from there.
  • Your Website/Application: Your platform shall provide a feature that allows customers to renew their tokens.

Important Note

  • This API is used to renew account tokens only and does not apply to card tokens.
  • The token can be renewed even if it is still active. Once the customer approves the request, the validity period will be extended for another 90 days, while all other token details remain unchanged.
User renew from your website/applicaiton
💡

You should receive the callback result within 3 minutes. If you do not receive the callback, we recommend using the Get token details API to retrieve the token information.

PayWay utilizes the callback_url defined in your Merchant Portal under Outlet Profile > Services > Card on File (CoF). This endpoint acts as the primary listener for asynchronous token info. Below is a sample payload of the callback data received once a user approves the request within the ABA Mobile app.

{
    "payment_credential": {
        "ctid": "SIDARA",
        "amount_limit_per_tran": 0,
        "token_flag": "CITI_FLEX",
        "source_of_fund": "*****1481",
        "subscribed_amount": 0.0,
        "currency": "USD",
        "expired_at": "2026-06-07T15:47:38.8884292+07:00",
        "pwt": "6451397B0BC9...E807",
        "type": "ABA ACCOUNT",
        "status": 1,
        "frequency": ""
    },
    "request_id": "6547709733"
}

Request

Header Params
stringrequired

Example: application/json

Body Params application/json

stringrequired

Request date and time in UTC format as YYYYMMDDHHmmss.

stringrequired

A unique merchant key which provided by ABA Bank.

<= 20 characters
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

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

PWT (PayWay Token) is a unique token automatically generated by the PayWay system and is used to complete the purchase.

stringrequired

PHP Sample Code

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

// Prepare the data to be hashed
$b4hash = $ctid . $request_time . $pwt . $merchant_id . $request_id;

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

Example

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

Responses