Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Braintree: Handle 'Processor Declined' errors #1

Open
lukesutton opened this issue Sep 4, 2013 · 1 comment
Open

Braintree: Handle 'Processor Declined' errors #1

lukesutton opened this issue Sep 4, 2013 · 1 comment

Comments

@lukesutton
Copy link
Contributor

Currently this error state generates a result where #successful? returns false as expected, but which has no errors against it. This is because the Braintree library doesn't capture this particular error in it's errors collection; which is really really annoying.

An alternate way of handling it would be to explicitly check for the error and coerce it into something useful.

@jordizle
Copy link

See this link. It describes accessing the 'Processor Declined' in more detail:

https://developers.braintreepayments.com/javascript+php/reference/response/transaction#processor-declined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants