Remove token

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

This API allows you to remove a customer’s linked account or card token from your merchant profile. Once removed, the action is irreversible, and the token will no longer be valid for any future transactions.

If a removed token is used for a payment attempt, the transaction will be declined. A failure response will be returned to the merchant, and a notification will also be sent to the ABA Mobile user for both ABA Account and ABA Card tokens.Customers can remove their tokens through the following channels:

  • ABA Mobile App: Users can view and remove their tokens directly within the ABA Mobile app.
  • Your Website/Application: Your platform should provide functionality that allows customers to remove their tokens.
On Merchant Website/Application offer remove token functionality for user

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

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 = $merchant_id . $ctid . $request_time . $pwt;

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

Responses