-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
Description
Ian and I were chatting today and discovered that we had very different mental models about when SPC authentication is invokable; it seems worthwhile to hash these out and come to a conclusion that we can document (as part of the Scope document?).
Some casual definitions:
- A payment context: a state in which the user views themself as in the process of a financial transaction (often referred to as being in a 'payment flow'). Divided into:
- An informal payment context: a payment context in which the flow is not visible to the browser (e.g. a checkout flow implemented with generic web APIs).
- A web-api payment context: a payment context in which the flow is happening via payment-related web APIs (e.g. inside of
PaymentRequest.show()
, such as a web-basedPaymentHandler
) and as such is visible to the browser.
Given these definitions, I believe that SPC authentication should be invokable in both informal and web-api payment contexts. Do others agree?
Note that if SPC is invokable in informal payment contexts, it is invokable anywhere on the web as the browser cannot tell the difference. It should always require a user gesture, imo, and the browser UX that will be shown should always state a payment context.