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.merchantTransID
that you provided when calling thePOST Payment
interface. You need to add this parameter to the URL of thePOST Capture
request so that EVO Cloud can locate the original authorization transaction and initiate the capture.Check the
capture.status
field in the EVO Cloud response. If the value isSuccess
, the transaction was successful; otherwise, checkresult.code
andresult.message
for the reason for the transaction failure.If you do not receive a response message from EVO Cloud, you need to call
GET Capture
to query the transaction result. Upon receiving the query response, evaluate the transaction result using thecapture.status
field in the same manner as in step 2. If the transaction failed, refer tocapture.failureCode
andcapture.failureReason
for details on the failure.If you included a
webhook
in yourPOST Capture
request and the transaction'scapture.status
isSuccess
, you can also obtain the transaction result through asynchronous notification, where theeventCode
isCapture
. Again, assess the transaction result using thecapture.status
field as in step 2.