braintree-web-drop-in icon indicating copy to clipboard operation
braintree-web-drop-in copied to clipboard

Error "Please check your information and try again." when nothing is wrong. Unclear UI.

Open thijs opened this issue 2 years ago • 2 comments

General information

  • SDK/Library version: 1.33.2
  • Environment: production
  • Browser and OS: all, but tested on Chrome (Version 102.0.5005.61 (Official Build) (64-bit)) ; Linux Funtoo (gentoo derivative)

Issue description

Trying to pay with a credit card, in some cases the error appears ("Please check your information and try again.") beneath the card input form and no payment method is available. The entered information is 100% certainly correct. One of our customers has reported the same error and there too, he is certain everything is correct.

A side issue here is that the UI is unclear. An error is reported, but nothing is marked as being wrong. Which is true, because it isn't. But at least the UI should indicate what it thinks is wrong. Or provide information on what is wrong somehow.

I am basically stuck at the moment. I have customers unable to pay and an UI that is telling them they did something wrong, but not what they did wrong. When they in actual fact didn't do anything wrong.

At the very least provide some debugging entry points somehow.

thijs avatar Jun 22 '22 08:06 thijs

How about some basic documentation for your errors? Showing me console.error(err); in your code examples instead of some proper error handling is useless, and kind of insulting.

It's not as if your errors are simple. I see multiple levels. Which of those can I count on to be there? How deep does it go? Now I just basically need to iterate by triggering an error (hard to get all of them; where is that list of possible errors I can get?) and then see where I can get the relevant information I need.

Please fix your documentation to be good and useful!

thijs avatar Jun 24 '22 13:06 thijs

@thijs First off, I'm sorry for the frustrations you're having and I truly apologize for the delay and response here.

Is there some information you could share that could help us narrow in on the problem you're seeing? Or, better yet, a Codepen example of some sort that illustrates the issue?

The error you're seeing is as a result of form validation during tokenization here: https://github.com/braintree/braintree-web-drop-in/blob/main/src/views/payment-sheet-views/card-view.js#L310

If you have info on the type of card, etc being used we can try and narrow in on the problem at hand, otherwise it's difficult to determine what the issue might be.

cgdibble avatar Aug 29 '22 22:08 cgdibble

closing for inactivity. If you continue to encounter errors, please contact Support

hollabaq86 avatar Oct 19 '22 14:10 hollabaq86