w3c / secure-payment-confirmation

Secure Payment Confirmation (SPC)
https://w3c.github.io/secure-payment-confirmation/
Other
111 stars 40 forks source link

When SPC runs in an iframe, what permissions are required? #68

Closed ianbjacobs closed 3 years ago

ianbjacobs commented 3 years ago

Raised by @Goosth

stephenmcgruer commented 3 years ago

From the browser side, we (Chromium) are likely to require the payments policy (https://w3c.github.io/payment-request/#permissions-policy) or some equivalent for any cross-origin iframe case.

Additionally, outside of the iframe specific question, we will also expect SPC to consume a user activation (e.g. a click), or a capability delegation token if/when that spec matures.

ianbjacobs commented 3 years ago

@stephenmcgruer,

Thank you for the comment on consuming a user activation. Here are three scenarios:

The third scenario is the "Frictionless Checkout" user journey of the scope document. If I understand from your comment, you don't think you would support this use case because there is no user activation. Is that correct?

stephenmcgruer commented 3 years ago

The "Buy" button click is a user activation, so whether or not we support the 'Frictionless Checkout' flow wouldn't fall under that concern. I haven't thought through the full privacy/user-expectation implications of a completely frictionless flow yet though :D.

stephenmcgruer commented 3 years ago

@ianbjacobs - I don't think there's much else to discuss here currently, so I'm going to close this issue. Please feel free to reopen if you think there's still something to be addressed.