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

A PaymentItem can't be a "valid decimal monetary value" #334

Closed
bzbarsky opened this issue Nov 30, 2016 · 0 comments · Fixed by #374
Closed

A PaymentItem can't be a "valid decimal monetary value" #334

bzbarsky opened this issue Nov 30, 2016 · 0 comments · Fixed by #374

Comments

@bzbarsky
Copy link

Step 11 of https://w3c.github.io/browser-payment-api/#constructor says:

For each PaymentDetailsModifier in details.modifiers, if the total field is supplied and is not a valid decimal monetary value, then throw a TypeError.

But the "total" member of PaymentDetailsModifier is a PaymentItem, not a string. So checking whether it's a "valid decimal monetary value" is nonsensical.

domenic added a commit to domenic/browser-payment-api that referenced this issue Dec 13, 2016
- Fixes w3c#373: align ordering of steps with Blink's implementation, except check for allowed-to-use first since that makes more sense
- Fixes w3c#334: properly get the total.amount.value instead of pretending total is a string
- Fixes w3c#335: do not assume additionalDisplayItems is present
- Fixes part of w3c#321: use proper dictionary terminology
- Ensures request.[[details]].shippingOptions/modifiers is always a sequence, instead of sometimes left as not present
- Fixes various algorithm structure and typographic issues
domenic added a commit to domenic/browser-payment-api that referenced this issue Dec 13, 2016
- Fixes w3c#373: align ordering of steps with Blink's implementation, except check for allowed-to-use first since that makes more sense
- Fixes w3c#334: properly get the total.amount.value instead of pretending total is a string
- Fixes w3c#335: do not assume additionalDisplayItems is present
- Fixes part of w3c#321: use proper dictionary terminology
- Ensures request.[[details]].shippingOptions/modifiers is always a sequence, instead of sometimes left as not present
- Fixes various algorithm structure and typographic issues
domenic added a commit to domenic/browser-payment-api that referenced this issue Dec 13, 2016
- Fixes w3c#373: align ordering of steps with Blink's implementation, except check for allowed-to-use first since that makes more sense
- Fixes w3c#334: properly get the total.amount.value instead of pretending total is a string
- Fixes w3c#333 and fixes w3c#335: do not assume various dictionaries are present
- Fixes part of w3c#321: use proper dictionary terminology
- Ensures request.[[details]].shippingOptions/modifiers is always a sequence, instead of sometimes left as not present
- Fixes various algorithm structure and typographic issues
domenic added a commit to domenic/browser-payment-api that referenced this issue Dec 23, 2016
- Fixes w3c#373: align ordering of steps with Blink's implementation, except check for allowed-to-use first since that makes more sense
- Fixes w3c#334: properly get the total.amount.value instead of pretending total is a string
- Fixes w3c#333 and fixes w3c#335: do not assume various dictionaries are present
- Fixes part of w3c#321: use proper dictionary terminology
- Ensures request.[[details]].shippingOptions/modifiers is always a sequence, instead of sometimes left as not present
- Fixes various algorithm structure and typographic issues
marcoscaceres pushed a commit that referenced this issue Jan 4, 2017
- Fixes #373: align ordering of steps with Blink's implementation, except check for allowed-to-use first since that makes more sense
- Fixes #334: properly get the total.amount.value instead of pretending total is a string
- Fixes #333 and fixes #335: do not assume various dictionaries are present
- Fixes part of #321: use proper dictionary terminology
- Ensures request.[[details]].shippingOptions/modifiers is always a sequence, instead of sometimes left as not present
- Fixes various algorithm structure and typographic issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant