New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 813725 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , iOS , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Provide explicit reason when a payment fails to be processed

Project Member Reported by agektmr@chromium.org, Feb 20 2018

Issue description

Chrome 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.
 
Mathieu: Does paymentrequest.show/demo send card information for payment processing? I am trying to figure out where in the pipeline the failure has occurred.
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?
Owner: rouslan@chromium.org
Status: Assigned (was: Untriaged)
We plan to add this feature. See:
https://github.com/w3c/payment-request/issues/647

Sign in to add a comment