Skip to content

Commit 4020346

Browse files
Add paymentMethodErrors, payerErrors, to PaymentDetailsUpdate (#768)
* closes #766
1 parent 384b538 commit 4020346

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

index.html

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,8 @@ <h2>
18201820
DOMString error;
18211821
PaymentItem total;
18221822
AddressErrors shippingAddressErrors;
1823+
PayerErrorFields payerErrors;
1824+
object paymentMethodErrors;
18231825
};
18241826
</pre>
18251827
<p>
@@ -1871,6 +1873,23 @@ <h2>
18711873
associated with the <a data-cite="!DOM#event-target">event
18721874
target</a>.
18731875
</dd>
1876+
<dt>
1877+
<dfn>payerErrors</dfn> member
1878+
</dt>
1879+
<dd>
1880+
Validation errors related to the <a>payer details</a>.
1881+
</dd>
1882+
<dt>
1883+
<dfn>paymentMethodErrors</dfn> member
1884+
</dt>
1885+
<dd>
1886+
<p>
1887+
<a>Payment method</a> specific errors. See, for example,
1888+
[[!payment-method-basic-card]]'s <a data-cite=
1889+
"payment-method-basic-card#basiccarderrorfields-dictionary"><code>
1890+
BasicCardErrorFields</code></a>.
1891+
</p>
1892+
</dd>
18741893
</dl>
18751894
</section>
18761895
</section>
@@ -3370,8 +3389,9 @@ <h3>
33703389
</dt>
33713390
<dd>
33723391
A payment method specific errors. See, for example,
3373-
[[payment-method-basic-card]]'s <code><a data-cite=
3374-
"payment-method-basic-card#basiccarderrorfields-dictionary">BasicCardErrorFields</a></code>.
3392+
[[payment-method-basic-card]]'s <a data-cite=
3393+
"payment-method-basic-card#basiccarderrorfields-dictionary"><code>
3394+
BasicCardErrorFields</code></a>.
33753395
</dd>
33763396
</dl>
33773397
</section>
@@ -5011,14 +5031,32 @@ <h2>
50115031
for that address.
50125032
</p>
50135033
<p>
5014-
Further, if the <a data-lt=
5015-
"PaymentDetailsUpdate.shippingAddressErrors">shippingAddressErrors</a>
5034+
Further, if <var>details</var>["<a data-lt=
5035+
"PaymentDetailsUpdate.shippingAddressErrors">shippingAddressErrors</a>"]
50165036
member is present, the user agent SHOULD display an error
50175037
specifically for each erroneous field of the shipping
50185038
address. This is done by matching each present member of
50195039
the <a>AddressErrors</a> to a corresponding input field
50205040
in the shown user interface.
50215041
</p>
5042+
<p data-link-for="PaymentDetailsUpdate">
5043+
Similarly, if <var>details</var>["<a>payerErrors</a>"]
5044+
member is present and
5045+
<var>request</var>.<a>[[\options]]</a>'s <a data-lt=
5046+
"PaymentOptions.requestPayerName">requestPayerName</a>,
5047+
<a data-lt=
5048+
"PaymentOptions.requestPayerEmail">requestPayerEmail</a>,
5049+
or <a data-lt=
5050+
"PaymentOptions.requestPayerPhone">requestPayerPhone</a> is
5051+
true, then display an error specifically for each
5052+
erroneous field.
5053+
</p>
5054+
<p data-link-for="PaymentDetailsUpdate">
5055+
Likewise, if
5056+
<var>details</var>["<a>paymentMethodErrors</a>"] is
5057+
present, then display errors specifically for each
5058+
erroneous input field for the particular payment method.
5059+
</p>
50225060
</li>
50235061
</ol>
50245062
</li>

0 commit comments

Comments
 (0)