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
Comment 1 by gogerald@chromium.org
, Oct 20 2017I 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.'.