Check transaction

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

This API allow you to get the transaction status of a transaction, you can only check the transaction that created within 7 days only. To get a details of a transaction which is older than 7 days please use Get a transaction details API.

💡

Request limit 600 requests/second

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.

stringrequired

Your purchase transaction id.

stringrequired

Base64 encode of hash hmac sha512 encryption of concatenates values req_time, merchant_id, and tran_id with public_key.

PHP Sample Code

// public key provided by ABA Bank
$api_key = "API KEY PROVIDED BY ABA BANK";
// Prepare the data to be hashed
$b4hash = $req_time . $merchant_id . $tran_id;
// Generate the HMAC hash using SHA-512 and encode it in Base64
$hash = base64_encode(hash_hmac('sha512', $b4hash, $api_key, true));

Example

{
  "req_time": "",
  "merchant_id": "",
  "tran_id": "",
  "hash": ""
}
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R

Responses