New issue
Advanced search Search tips

Issue 709992 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Feature



Sign in to add a comment

PaymentRequest.show() multiple times should have a better error message

Reported by matt.t.g...@gmail.com, Apr 10 2017

Issue description

Steps to reproduce the problem:
1. In DevTools on Chrome for Android and copy and paste the following code TWICE:

new PaymentRequest([{supportedMethods: ['visa']}], {
  total: {
    label: 'Example Total Label',
    amount: {
      currency: 'USD',
      value: '123',
    },
  },
}, {}).show();

What is the expected behavior?
The error should indicate that the PaymentRequest UI is currently open and cannot be re-opened.

What went wrong?
The error is simply "DOMException: Request cancelled".

Something along the lines of "DOMException: Payment request is currently open." would be more helpful for developers.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 57.0.2987.133  Channel: stable
OS Version: 
Flash Version:
 
Cc: ma...@chromium.org rouslan@chromium.org zkoch@chromium.org
Status: Available (was: Unconfirmed)
Cc: -zkoch@chromium.org -rouslan@chromium.org -ma...@chromium.org
Components: Blink>Payments
Labels: -OS-Android -Type-Bug -Pri-2 OS-All Pri-1 Type-Feature
Owner: rouslan@chromium.org
Status: Assigned (was: Available)
Thank you for the report! I agree that error message is subpar. I'll look into improving it.
Status: WontFix (was: Assigned)
I believe this has been fixed. See the attached image of what I see on https://rsolomakhin.github.io/pr/cc/. Closing as WontFix: obsolete.
Screenshot from 2017-07-28 11:05:03.png
80.8 KB View Download

Sign in to add a comment