Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Handle processor and gateway error responses #72

Merged
merged 1 commit into from
Apr 26, 2017

Conversation

luukveenis
Copy link
Contributor

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

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
Copy link
Member

@adammathys adammathys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@adammathys adammathys merged commit 00cd5b5 into solidusio:master Apr 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants