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

Issue 776720 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

[Payments] Verify behavior when payment app rejects promise

Project Member Reported by ma...@chromium.org, Oct 20 2017

Issue description

From github:

"In modifying my own copy of BobPay, I forgot to update the url on line 14 of sw-bobpay.js to point to my payment provider. The result was that when clicking "pay" in the Chrome pop-over, the new window would never open, a "Promise failed" error would get logged to the console, and the payment successful screen with it's associated JSON would appear.

Seems like a failed payment window should lead to a failed payment?"

By looking at the code [1], it appears that the BobPay app chooses to reject the promise if the window fails to open (a sensible behavior).

We should confirm that in this case the Payment Request doesn't succeed in this case. 

[1] https://github.com/madmath/payment-request-show/blob/9a1d581dad116bd30963615026ea5046d2fa1591/bobpay/public/pay/sw-bobpay.js#L14


 
I do not see this phenomenon ('the payment successful screen with it's associated JSON would appear') when 'payment_request_resolver.reject('Failed to open window');'

instead we should see this phenomenon (https://drive.google.com/file/d/0B4yF5XJG4VQAV0ZBQjNmUmN4VWM/view?usp=sharing) with a console warning that 'PaymentRequestEvent.respondWith() failed: the promise passed to respondWith() was rejected.'.
Labels: Needs-Feedback
Adam: Do you have a test page where we can observe the behavior that you've described? We're having difficulty reproducing the issue.
Status: WontFix (was: Unconfirmed)
***Bulk Edit***

There is no valid investigation in the bug, closing. Feel free to reopen if needed.

Sign in to add a comment