-
Notifications
You must be signed in to change notification settings - Fork 0
Braintree Reversal
Afifa Bakiz edited this page May 21, 2019
·
5 revisions
Any Braintree transaction request executed without a settlement request can be considered as a preauthorization. The Braintree API provides voidTransaction
that can be used to reverse a preauthorized payment by sending the following parameters:
Parameter Name | Description |
---|---|
pspTransactionId | Braintree transaction id |
The Braintree Transaction
object will be returned in the response. If the Transaction.errors
field of the returned object is empty, we can assume that the 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 reversal 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 returnedTransaction
object.