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

Separate total from line items. #158

Closed
wants to merge 1 commit into from

Conversation

adrianba
Copy link
Contributor

Fixes #18.

@rvm4
Copy link
Collaborator

rvm4 commented Apr 27, 2016

LGTM

@msporny
Copy link
Member

msporny commented Apr 28, 2016

+1 to merge as it improves the spec. Why a PaymentItem instead of a CurrencyAmount? Does that mean that someone could do this:

details.total.label = "Grand Total";

and expect "Grand Total" to show up on the UI?

@adrianba
Copy link
Contributor Author

@msporny wrote:

Why a PaymentItem instead of a CurrencyAmount?

Displaying the label is optional but, yes, there are current payment APIs that allow the developer to customise the description of the final total.

@adrianba
Copy link
Contributor Author

Merged as 9ef1dd2 per telcon.

@adrianba adrianba closed this Apr 28, 2016
@adrianba adrianba deleted the issue18-total branch April 28, 2016 17:20
adrianba added a commit to adrianba/browser-payment-api that referenced this pull request Apr 28, 2016
PRs w3c#158, w3c#160, and w3c#161 made changes that affect the examples. These
weren't reflected in original PRs to keep those changes simple and to
avoid merge conflicts from changing the same lines in the spec. This
changes updates the examples.

Also updating the syntax to be consistent and use JavaScript (rather
than JSON).

Fixes w3c#164.
adrianba added a commit that referenced this pull request Apr 28, 2016
PRs #158, #160, and #161 made changes that affect the examples. These
weren't reflected in original PRs to keep those changes simple and to
avoid merge conflicts from changing the same lines in the spec. This
changes updates the examples.

Also updating the syntax to be consistent and use JavaScript (rather
than JSON).

Fixes #164.
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.

4 participants