capture method schedules a batch of previously authorized transactions for the capture operation with your payment processor. For capture to succeed, the authorization you previously obtained from the processor through the auth() call must still be valid. After a capture() call, actual capture occurs within the next 12 hours when the Vindicia server back-end processes run the regularly scheduled batch capture operation with your payment processor.
Typically, payment processors issue authorizations for only a short duration. If a previously authorized transaction has not been captured within a certain period of time, usually a few days, Subscribe sets the transaction status to AuthExpired; the corresponding TransactionStatusType enumerated value is Cancelled. This method will attempt to reauthorize AuthExpired transactions before scheduling a capture.
The business meaning of a successful capture varies according to the transaction’s payment method, as follows:
- For credit card transactions, the payment processor charges the credit card specified in the
sourcePaymentMethoddata member of theTransactionobject for the transaction amount. - For ECP transactions,
capture()executes the payment, that is, a fund transfer is initiated between the banks. - For PayPal transactions, capturing a previously authorized transaction enables you to receive the customer’s payment.
- For Boleto Bancário transactions, you cannot call
capture(). Instead, authorize and capture transactions in the single callauthCapture(). (See the Transaction.authCapture method.)
Input
srd: sparse response description, a SOAP string (which must be a JSON object), in which you specify the elements you want returned.This parameter enables the calling system to constrain amethod call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call.
Some fields are required, either practically or in the WSDL, and will be returned regardless of the srd. A null srd returns the complete response.
transactions: an array of Transaction objects to schedule for capture with the payment processor.
Output
return: an object of typeReturn that indicates the success or failure of the call.
qtySuccess: the number of transactions that can be successfully scheduled for capture.
qtyFail: the number of transactions that cannot be scheduled for capture.
results: an array of CaptureResult objects that contain information on the success or failure of the call on each transaction.
The following table lists the CaptureResult object data members.

