Cancellation Payment

To perform financial transaction request to serve need to authorize your API token and API signature. API token will be generate every request authentication

In order to interact with PAYON's API. First you need to Obtain your API Key. Next generate API's signature for authorization between Merchant and PAYON's server. Finally, obtain your authentication's token for authenticate user account.

Cancellation Transaction

POST {{URL}}/pg/reversal

This endpoint allow you to process reversal request.

Request Body

NameTypeDescription

sign

string

Sign is a digital signature for verifying the authenticity of digital messages or documents. Only a valid API's sign can be interact with PAYON's Server.

txId*

string

Transaction identification

merchantId*

string

Merchant Identification

termId*

string

Merchant Terminal identification

{
    "txId": "2435",
    "merchantId": "EPAY00000000001",
    "termId": "PAYONGT1",
    "amount": 1.00,
    "currency": "USD",
    "resultCode": "0000",
    "resultMessage": "Success",
    "approvalNo": "538433",
    "approvalDate": "09122020110737",
    "acsUrl": null,
    "refNo": "000004538433",
    "transactionAmount": null
}

Generate API Signature

Example Request

curl --location --request POST 'http://pgtest.payon.com.kh/pg/reversal' \
--data-raw '{
    "txId":"159607654560937",
    "merchantId":"C0000143",
    "termId":"CT03000003"
}'

Last updated