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

Should getting a PaymentRequest result in an extra round trip? #11

Open
msporny opened this issue Jul 15, 2016 · 0 comments
Open

Should getting a PaymentRequest result in an extra round trip? #11

msporny opened this issue Jul 15, 2016 · 0 comments

Comments

@msporny
Copy link
Member

msporny commented Jul 15, 2016

It's currently not clear if having an extra round-trip (HTTP API - Initiating a Payment Request - steps 2 and 3) is beneficial. The alternative is to respond with an HTTP 402 and the payment request (step 4) when the GET for the initial resource is performed. This removes the need to do an extra GET at the expense of providing a little more flexibility wrt. the location of the payment request service. For example, having the Location header enables software developers to split media servers from payment processing servers. That said, there are techniques to do this today without the extra layer of indirection.

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

1 participant