[w3c/browser-payment-api] A PaymentDetailsModifier may not have an additionalDisplayItems value present (#335)

https://w3c.github.io/browser-payment-api/#constructor step 13 says:

> For each PaymentDetailsModifier in details.modifiers, if the additionalDisplayItems sequence contains any PaymentItem objects with an amount that is not a valid decimal monetary value, then throw a TypeError. 

But there may not be a value present for additionalDisplayItems at all in the dictionary.

Furthemore, the `amount` of a `PaymentItem` is not a string, so you can't check whether it's a "valid decimal monetary value".

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/335

Received on Wednesday, 30 November 2016 03:08:18 UTC