Cancel
Cancel
When you need to initiate a cancel for a transaction, you can call the POST Cancel interface.
Note
Cancel is only supported for incomplete authorization.
Sync Flow:
Async Flow:
The main process is as follows:
When you initiate the cancel, you will use the
merchantTransInfo.merchantTransIDthat you provided when calling thePOST Paymentinterface. You need to add this parameter to the URL of thePOST Cancelrequest so that EVO Payment can locate the original pre-authorization transaction and initiate the cancel.Check the
cancel.statusfield in the EVO Payment response. If the value of this field isSuccess, it indicates that the cancel was successful; otherwise, you need to checkresult.codeandresult.messageto find out the reason for the transaction failure.If you do not receive a response from EVO Payment, you need to call
GET Cancelto query the transaction result. When you receive the query response, you should also check thecancel.statusfield to determine the transaction result, using the same judgment method as in step 2. If the transaction fails, you need to checkcancel.failureCodeandcancel.failureReasonto find out the reason for the failure.If you included a
webhookin thePOST Cancelrequest and the transaction'scancel.statusisSuccess, you can also obtain the transaction result through asynchronous notification, where theeventCodeisCancel. Again, you should check thecancel.statusfield to determine the transaction result, using the same judgment method as in step 2.

