-
Notifications
You must be signed in to change notification settings - Fork 40
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
Proposal: Add payeeName
as alternative to payeeOrigin
#163
Comments
I welcome input and/or corrections from @jcemer-stripe and @jeremywagemans (And anyone else of course!) |
Is there anything stopping us from jumping ahead to step 2? (Add a |
I would prefer to keep a good semantics. Having an extra Wondering what should happen if both are provided, should we display all together like |
This is a good idea! |
I think having two fields is not a bad idea, though unfortunately the existing That isn't a deal breaker, just an fyi. |
Is it possible to remove the |
Yes, and in fact it's actually quite easy. I was thinking of this the wrong way around - making optional fields required isn't backwards compatible, but making required fields optional is mostly. (The one caveat is if someone is explicitly checking for a So yeah, we could make EDIT: Adjusted the proposal. |
payeeOrigin
with payeeName
payeeName
as alternative to payeeOrigin
With the change to the proposal, this might now address #48 partially or completely too. |
@tblachowicz, would this address the issue you raised in #48? |
Per the proposal in #163, add a payeeName field to the spec.
EDIT: Updated after initial discussion indicated it would be better to have the choice of origin-or-name.
Background
In discussion with a partner, we have heard that they (acting as the Relying Party) do not always want to use an exact origin for the payee. Instead, there are occasions where they would want to instead display a 'real name' for the merchant, and are happy to have the name string signed over. That is not currently possible, as the spec says that
payeeOrigin
must be parseable as a URL and normalized to that URL's origin.Proposal
payeeOrigin
anoptional
field in theSecurePaymentConfirmationRequest
dictionary.DOMString payeeName
field.payeeOrigin
andpayeeName
are omitted or empty, throw.payeeOrigin
is present, parse it + throw on fail as before.Mock-ups
Quick mock-ups:
The text was updated successfully, but these errors were encountered: