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

Rescue Braintree::NotFound errors in source display methods #124

Merged
merged 4 commits into from
Oct 11, 2017

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Sep 12, 2017

Whenever we want to display a payment source during checkout or admin
payments screen it may happen that the token is not known at Braintree or
the token is nil.

In order to not blow up these pages we should rescue these errors instead.

Whenever we want to display a payment source during checkout or
admin payments screen it may happen that the token is not known
at Braintree or the token is nil.

In order to not blow up these pages we should rescue these errors
instead.
If last_digits returns nil (because the token is unknown) we want
to display this correctly to the user as well.
@tvdeyen tvdeyen force-pushed the secure-source-display-methods branch from c0667e9 to df75c1d Compare September 14, 2017 20:59
@adammathys adammathys merged commit 045d36a into solidusio:master Oct 11, 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