Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can a Browser-based Payment App cancel the payment flow? #37

Closed
ianbjacobs opened this issue Sep 8, 2016 · 4 comments
Closed

How can a Browser-based Payment App cancel the payment flow? #37

ianbjacobs opened this issue Sep 8, 2016 · 4 comments

Comments

@ianbjacobs
Copy link
Contributor

Migrated from
w3c/webpayments#128

@ianbjacobs ianbjacobs changed the title How can a Web Based Payment App cancel the payment flow? How can a Browser-based Payment App cancel the payment flow? Sep 14, 2016
@adamroach
Copy link
Contributor

The current service worker proposal addresses this with:

The user agent receives a failure response from the payment app through rejection of the Promise. The user agent MUST use the rejection reason to reject the Promise that was created by PaymentRequest.show().

I think that should d be sufficient for canceling the payment flow, although it's possible I've overlooked something.

@rsolomakhin
Copy link
Collaborator

Can we let the user select a different app, if one of the apps fails?

@ianbjacobs
Copy link
Contributor Author

At the 23 November 2016 task force call, there was support for not prohibiting a "retry with other matching payment app" behavior by the user agent.

http://www.w3.org/2016/11/23-apps-minutes.html

@tommythorsen
Copy link
Member

I've added a PR that addresses cancellation here: #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants