Skip to content
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

Refactor the supportedMethods and payment specific data #162

Closed
wants to merge 2 commits into from

Conversation

adrianba
Copy link
Contributor

This change updates the first argument to the PaymentRequest constructor
to combine the supportedMethods and payment method specific data. By
making this change it is possible to share an instance of data amongst
multiple payment methods that wasn't possible before.

This change updates the first argument to the PaymentRequest constructor
to combine the supportedMethods and payment method specific data. By
making this change it is possible to share an instance of data amongst
multiple payment methods that wasn't possible before.
@msporny
Copy link
Member

msporny commented Apr 28, 2016

This is an improvement over what is in the spec now. +1 to merge, even though I disagree w/ generic data containers like "data". I still think the first argument should be a single PaymentRequest message ... something like what's defined in the Core Messages proposal.

All that said, I'd rather have this than what we have in the spec now, so +1 to merge.

@adrianba
Copy link
Contributor Author

Merged as c3a3ff7 per telcon.

@adrianba adrianba closed this Apr 28, 2016
@adrianba adrianba deleted the supported-methods branch April 28, 2016 17:22
adrianba added a commit to adrianba/browser-payment-api that referenced this pull request Apr 28, 2016
Fixes w3c#48.

PR w3c#162 refactored the supportedMethods and payment specific data
fields. Issue w3c#3 discusses supporting multiple currencies and issue w3c#4
discusses price per payment method and we should consider specific
proposals for those issues.

PR w3c#162 replaces the `sequence<DOMString>` with
`sequence<PaymentMethodData>` so we now use objects.
@adrianba adrianba mentioned this pull request Apr 28, 2016
adrianba added a commit that referenced this pull request Apr 28, 2016
Fixes #48.

PR #162 refactored the supportedMethods and payment specific data
fields. Issue #3 discusses supporting multiple currencies and issue #4
discusses price per payment method and we should consider specific
proposals for those issues.

PR #162 replaces the `sequence<DOMString>` with
`sequence<PaymentMethodData>` so we now use objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants