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

Make UAs throw for invalid monetary amounts #256

Merged
merged 5 commits into from Sep 16, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 12 additions & 2 deletions index.html
Expand Up @@ -1237,8 +1237,18 @@ <h2>updateWith()</h2>
field of <em>target</em>@[[\details]].
</li>
<li>
If <code>details</code> contains a <code>modifiers</code> value, then copy
this value to the <code>modifiers</code> field of <em>target</em>@[[\details]].
If <code>details</code> contains a <code>modifiers</code> value, then:
<ol>
<li>Let <em>modifiers</em> be the sequence <code>details.modifiers</code>.</li>
<li>For each <a><code>PaymentDetailsModifier</code></a> in <em>modifiers</em>, if the
<code>total</code> field is supplied and is not a <a>valid decimal monetary value</a>,
then set <em>modifiers</em> to an empty sequence.</li>
<li>For each <a><code>PaymentDetailsModifier</code></a> in <em>modifiers</em>, if the
<code>additionalDisplayItems</code> sequence contains any <a><code>PaymentItem</code></a>
objects with an <code>amount</code> that is not a <a>valid decimal monetary value</a>,
then set <em>modifiers</em> to an empty sequence.</li>
<li>Copy <em>modifiers</em> to the <code>modifiers</code> field of <em>target</em>@[[\details]].</li>
</ol>
</li>
<li>
If <code>details</code> contains a <code>shippingOptions</code> sequence, then:
Expand Down