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

Is tracking payment request state necessary? #35

Closed
msporny opened this issue Dec 16, 2015 · 3 comments
Closed

Is tracking payment request state necessary? #35

msporny opened this issue Dec 16, 2015 · 3 comments

Comments

@msporny
Copy link
Member

msporny commented Dec 16, 2015

The paymentRequest API tracks the payment request state:

http://wicg.github.io/paymentrequest/specs/paymentrequest.html#paymentrequest-interface

enum PaymentRequestState {
    "created",
    "interactive",
    "delegated",
    "accepted",
    "closed"
};

The Web Payments CG Browser API proposal does not:

http://wicg.github.io/web-payments-browser-api/#processing-a-payment-request

Should we report payment request state back to the payee and enable the payee site to react as the payer proceeds through the payment flow? Or should we avoid exposing this level of detail in an effort to reduce the cognitive overhead for the developers (simpler API) and implementation complexity for the API (easier to implement for browser manufacturers)? In short, what are the use cases for reporting the payment request state back to the payee?

@dlongley
Copy link
Contributor

-1 to reporting back state information if we can avoid it. I'd rather see lower-level APIs that the payee site can compose in a way that works for their flow.

@adrianhopebailie
Copy link
Collaborator

This is being addressed in the proposal at #64.

@msporny
Copy link
Member Author

msporny commented Mar 14, 2016

Closing issue, as this was resolved in favor of removing state in proposal #64.

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

3 participants