-
Notifications
You must be signed in to change notification settings - Fork 0
Braintree Authorization
Afifa Bakiz edited this page May 21, 2019
·
5 revisions
The Braintree settlement flow is used to implement our authorization concept. The Braintree API provides a TransactionRequest
that can be used for the authorization by sending the following parameter:
Parameter Name | Description |
---|---|
amount | Braintree amount in decimal format |
paymentToken | PSP alias |
deviceData | Device data collected by client |
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 authorization 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.