w3c / secure-payment-confirmation

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

[Spec] Add SecurePaymentConfirmationRequest.locale #212

Closed stephenmcgruer closed 2 years ago

stephenmcgruer commented 2 years ago

This hint may (in an RFC2119 sense) be used by the browser to localize the SPC UX in order to match what the website is (reportedly) using in its interactions with the user.

Fixes https://github.com/w3c/secure-payment-confirmation/issues/209

Chrome implementation bug: https://crbug.com/1365335


Preview | Diff

stephenmcgruer commented 2 years ago

cc @aphillips @ianbjacobs - very rough first draft of this. I am interested to hear feedback on the API shape (does a sequence<USVString> work?), as well as whether the normative text is (roughly) in the right shape and place(s).

ianbjacobs commented 2 years ago

@stephenmcgruer, let's go ahead and merge this. We can share the change at an upcoming WPWG meeting.