This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle processor and gateway error responses
The existing code here will only return error messages if they come from Braintree. In the case that the transaction is rejected by the gateway or the processor, we'll return an error response with a blank message. For these cases, the `errors` array will be empty, and we need to look at the gateway rejection status or processor response codes as per the documentation here: https://developers.braintreepayments.com/reference/response/transaction/ruby#result-object
- Loading branch information
Luuk Veenis
committed
Apr 25, 2017
1 parent
df6808d
commit 9020331
Showing
2 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters