Skip to content

Braintree Capture

Afifa Bakiz edited this page May 21, 2019 · 5 revisions

The Braintree authorization flow is used to implement our capture concept. The Braintree API provides submitForSettlement that can be used for the capture by sending the following parameters:

Parameter Name Description
pspTransactionId Braintree transaction id

Braintree Transaction object will be returned in the response. If the Transaction.errors field of the returned object is empty, we can assume that related operation is successful. Otherwise, the Transaction.status field should be checked to assess the real status of the request.

There are 2 types of errors that can be considered relevant to our capture flow:

  • ValidationErrors are based on bad requests or configuration problems related to the PSP configuration.
  • SettlementErrors can be inferred from the processorSettlementResponseCode field of the returned Transaction object.
Clone this wiki locally