Skip to content

Reversal

Reversal

When a request times out, you can use the POST Reversal interface to ensure that the payment fails.

Note

The following interfaces support initiating a reversal:
Payment、Cancel、Capture、Refund and MerchandiseCredit

The main process is as follows:

  1. When initiating a reversal API, you need to use the merchantTransInfo.merchantTransID that you provided when calling the POST original transaction interface. You need to include this parameter in the POST Reversal request URL so that EVO Cloud can locate the original pre-authorization transaction and initiate the reversal.
Example
js
curl 'https://hkg-online-uat.everonet.com/g2/v0/payment/acq/10130014/evo.offline.reversal/T20240306140712147' \
-H 'Authorization: 36ca9276795340258f1857876133cd8cd9be05971672a2204a015ad2512d0707' \
-H 'DateTime: 20240306140827+0800' \
-H 'SignType: SHA256' \
-H 'Content-Type: application/json' \
-H 'MsgID: M20240306140827458' \
-d '{
}'
  1. Check the reversal.status field in the EVO Cloud response. If the value of this field is Success, it means the reversal was successful. Otherwise, you need to review the result.code and result.message to determine the reason for the transaction failure.
  2. If you do not receive a response from EVO Cloud, you should retry by calling POST Reversal again.