w3c / secure-payment-confirmation

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

`DOMString` for `payeeName` vs. `USVString` for other fields? #208

Closed aphillips closed 1 year ago

aphillips commented 1 year ago

section 4.1.3 https://www.w3.org/TR/secure-payment-confirmation/#sctn-securepaymentconfirmationrequest-dictionary section 6.1 https://www.w3.org/TR/secure-payment-confirmation/#sctn-paymentcredentialinstrument-dictionary

Oddly, payeeName is a DOMString but payeeOrigin is a USVString? This mix is found elsewhere, e.g. in "AuthenticationExtensionsClientInputs" in section 5 and in the PaymentCredentialInstrument dictionary in section 6.1 etc.

Is there some reason the payeeName needs to support unpaired surrogates?

ianbjacobs commented 1 year ago

@aphillips, based on our discussion today, it sounds like we should change payeeName and displayName (for the instrument) to be USVString. The currency and total are DOMStrings inherited from Payment Request API.