Skip to main content

Capture

CAPTURE request

The CAPTURE request settles a transaction that was previously authorized by a SALE sent with auth=Y. The held funds are transferred to the Merchant's account.

The authorization stays in PENDING status until it is captured or released. To release it instead of capturing, send CREDITVOID.

This request is sent by POST in the background (e.g. through PHP CURL).

Availability

Two-stage payments depend on the connector supporting the mode, and are implemented for the wallet brands applepay and googlepay. Confirm availability with your account manager before using auth=Y for any other brand. See Two-stage payments.

Request parameters

ParameterDescriptionLimitationsRequired
actionAction to perform= CAPTURE+
client_keyUnique client keyCLIENT_KEY+
trans_idTransaction ID of the authorization in the Payment PlatformString up to 255 characters+
amountThe amount to capture. Only one partial capture is allowed. If omitted, the full authorized amount is captured.Format depends on currency. See the SALE request for the per-currency format rules.-
hashSpecial signature to validate your request to Payment PlatformSee Appendix A, Capture signature.+

Response parameters

You will get JSON encoded string with transaction result.

Successful capture response

ParameterDescription
actionCAPTURE
resultSUCCESS
statusSETTLED
order_idTransaction ID in the Merchant's system
trans_idTransaction ID in the Payment Platform
trans_dateTransaction date in the Payment Platform
amountAmount of capture
currencyCurrency

Unsuccessful capture response

ParameterDescription
actionCAPTURE
resultDECLINED
statusPENDING
order_idTransaction ID in the Merchant's system
trans_idTransaction ID in the Payment Platform
trans_dateTransaction date in the Payment Platform
amountAmount of capture
currencyCurrency
decline_reasonThe reason why the capture was declined

Undefined capture response

ParameterDescription
actionCAPTURE
resultUNDEFINED
statusPENDING
order_idTransaction ID in the Merchant's system
trans_idTransaction ID in the Payment Platform
trans_dateTransaction date in the Payment Platform

Callback parameters

Successful capture response

ParameterDescription
actionCAPTURE
resultSUCCESS
statusSETTLED
order_idTransaction ID in the Merchant's system
trans_idTransaction ID in the Payment Platform
trans_dateTransaction date in the Payment Platform
amountAmount of capture
currencyCurrency
connector_name *Connector's name (Payment Gateway)
rrn *Retrieval Reference Number value from the acquirer system
approval_code *Approval code value from the acquirer system
gateway_id *Gateway ID - transaction identifier provided by payment gateway
extra_gateway_id *Extra Gateway ID - additional transaction identifier provided by payment gateway
merchant_name *Merchant Name
mid_name *MID Name
hashSpecial signature, used to validate callback, see Appendix A

* The parameters are included if the appropriate setup is configured in the admin panel (see "Add Extended Data to Callback" block in the Configurations -> Protocol Mappings section).

Unsuccessful capture response

ParameterDescription
actionCAPTURE
resultDECLINED
statusPENDING
order_idTransaction ID in the Merchant's system
trans_idTransaction ID in the Payment Platform
trans_dateTransaction date in the Payment Platform
decline_reasonThe reason why the capture was declined
hashSpecial signature, used to validate callback, see Appendix A
warning

Do not use VOID to release a held authorization. VOID applies to payments in SETTLED status only and returns Void is not allowed. for an authorization that has not been captured.