Capture
Capture
You can initiate the capture request through the POST Capture interface. You can specify the amount you want to complete, but it cannot exceed the original authorized transaction amount.
Sync Flow:
Async Flow:
The main process is as follows:
When you initiate the capture, use the
merchantTransInfo.merchantTransIDthat you provided when calling thePOST Paymentinterface. You need to add this parameter to the URL of thePOST Capturerequest so that EVO Payment can locate the original authorization transaction and initiate the capture.Check the
capture.statusfield in the EVO Payment response. If the value isSuccess, the transaction was successful; otherwise, checkresult.codeandresult.messagefor the reason for the transaction failure.If you do not receive a response message from EVO Payment, you need to call
GET Captureto query the transaction result. Upon receiving the query response, evaluate the transaction result using thecapture.statusfield in the same manner as in step 2. If the transaction failed, refer tocapture.failureCodeandcapture.failureReasonfor details on the failure.If you included a
webhookin yourPOST Capturerequest and the transaction'scapture.statusisSuccess, you can also obtain the transaction result through asynchronous notification, where theeventCodeisCapture. Again, assess the transaction result using thecapture.statusfield as in step 2.

