Skip to content

Commit

Permalink
Validate payment method data
Browse files Browse the repository at this point in the history
This is part of w3c/payment-method-basic-card#20. What remains is for the basic-card specification to define its validate payment method data algorithm.
  • Loading branch information
domenic committed Dec 14, 2016
1 parent 6eea34d commit b0e42a9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,21 @@ <h2>
<a>JSON-serializable object</a>, then <a>throw</a> a
<a>TypeError</a>.
</li>
<li>For each <var>supportedMethod</var> of
<var>paymentMethod</var>.<a data-lt=
"PaymentMethodData.supportedMethods">supportedMethods</a>:
<ol>
<li>Perform the <a>validate payment method data
algorithm</a> for the <a>payment method</a> identified by
<var>supportedMethod</var>, passing in
<var>paymentMethod</var>.<a data-lt=
"PaymentMethodData.data">data</a> if the <a data-lt=
"PaymentMethodData.data">data</a> member of
<var>paymentMethod</var> is present, or null if it is
not. Rethrow any exceptions.
</li>
</ol>
</li>
</ol>
</li>
</ol>
Expand Down Expand Up @@ -2280,6 +2295,13 @@ <h2>
specification [[SECURE-CONTEXTS]].
</dd>
</dl>
<p>
Additionally, each <a>payment method</a> must have a <dfn>validate
payment method data algorithm</dfn> defined in its specification, which
takes payment method data: either an object, or null in the case no
data was passed. This algorithm must throw an exception if the given
data is not appropriate for that payment method.
</p>
</section>
<section id="conformance">
<p>
Expand Down

0 comments on commit b0e42a9

Please sign in to comment.