Get transactions

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

This API allows you to retrieve purchase transactions using merchant_ref number, for both online and in-store payments.

  • You can retrieve details for any past transaction and we response only the last 50 transactions.
  • Limited to 10 requests per minute. This limit cannot be increased.

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

Merchant reference #.

<= 20 characters
stringrequired

A Base64-encoded HMAC SHA-512 hash generated by concatenating req_time, merchant_id, and merchant_ref, encrypted using your 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 . $merchant_ref;
// 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": "",
  "merchant_ref": "",
  "hash": ""
}
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R

Responses