Provide explicit reason when a payment fails to be processed |
||
Issue descriptionChrome Version: Version 66.0.3350.0 (Official Build) canary (64-bit) OS: All What steps will reproduce the problem? (1) Go to https://paymentrequest.show/demo (2) Start the demo and enter a Japanese characters (ex: 山田太郎) to "Name on card" in Payment Request's "Add card" menu. (3) Press "Pay" What is the expected result? Show an error message something nice like "Please enter card owner name with alphabets" What happens instead? "An error occurred while processing the payment" (translation from Japanese locale since I don't have a quick access to reproduce this) Not sure if only ascii/alphabet is expected for card owner's name, but if so it should only accept ascii/alphabet in the first place. Otherwise, the error message should be something nicer. This is a common mistake that a lot of credit card user in Japan make.
,
Feb 21 2018
Sorry it was confusing. paymentrequest.show/demo isn't a reproducible website. It's a feedback from our partner and turned out the root cause is that `.complete('fail')` won't allow developer to provide any additional failure context.
Is there a way to provide reasons of failure to end users? Otherwise, any good idea to get users set the right credit card information without confusion?
,
Feb 21 2018
We plan to add this feature. See: https://github.com/w3c/payment-request/issues/647 |
||
►
Sign in to add a comment |
||
Comment 1 by rouslan@chromium.org
, Feb 20 2018