Cancel pre-purchase transaction
Cancel pre-auth (or cancel pre-authorization) is the process of releasing a temporary hold on funds placed on a customer's payment method before the final transaction is completed.
Important Notes:
- You can only cancel a pre-authorization if the transaction is still pending; if the pre-auth has already been completed or previously cancelled, it cannot be cancelled again.
- Each transaction’s pre-authorization can be cancelled only once.
- Once the cancellation is successfully processed, the transaction status will update to "CANCELLED".
- For ABA PAY and Card transactions, funds are instantly released back to the payer, whereas for KHQR transactions, the funds will be refunded to the payer.
Request
Example: application/json
Body Params application/json
Request date and time in UTC format as YYYYMMDDHHmmss.
A unique merchant key which provided by ABA Bank.
The JSON-encoded object containing mc_id and tran_id using RSA public key encryption in chunks. The encrypted data is then concatenated and encoded in Base64 format.
mc_id string mandatory
A unique merchant key which provided by ABA Bank. Same value as merchant_id.
tran_id string mandatory
Pre-auth purcahse transaction id to cancel.
PHP Sample Code
Base64-encoded HMAC-SHA512 hash of concatenated values: merchant_id, merchant_auth, and request_time with public_key.
PHP Sample Code
Example