Cancel#
When you need to cancel a transaction, you can use the POST Cancel interface to initiate the cancel.The following transaction types support cancel:
Payment, Pre-Authorization and Capture
The main process is as follows:1.
When initiating a payment cancel or pre-authorization cancel, you need to use the merchantTransInfo.merchantTransID that you provided when calling the POST Payment interface. You should include this parameter in the POST Cancel request URL so that EVO Cloud can locate the original pre-authorization transaction and initiate the cancel.
If you need to cancel a capture, you should use the merchantTransInfo.merchantTransID from the POST Capture interface in the POST Cancel request URL.
Example
2.
Check the cancel.status field in the EVO Cloud response. If the value of this field is Success, it means the cancel was successful. Otherwise, you need to review the result.code and result.message to determine the reason for the transaction failure.
3.
If you do not receive a response from EVO Cloud, you should call GET Cancel to query the transaction result. When you receive the query response, you should also check the cancel.status field to determine the transaction result, using the same method as in step 2. If the transaction failed, review the cancel.failureCode and cancel.failureReason to determine the cause of the failure.
4.
If you included a webhook in the POST Cancel request, you can also receive the transaction result through asynchronous notification. Similarly, you should use the cancel.status field to determine the transaction result, following the same method as in step 2.