Skip to content

Commit 0273c79

Browse files
Add error member to PaymentValidationErrors (#747)
1 parent 203c379 commit 0273c79

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

index.html

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3224,12 +3224,14 @@

32243224
<li>Set <var>responsevar>.<a>[[\retryPromise]]a> to
32253225
<var>retryPromisevar>.
32263226
li>
3227-
<li>By matching the members of <var>errorFieldsvar> to input fields
3228-
in the user agent's UI, indicate to the end-user that something is
3229-
wrong with the data of the payment response. For example, a user
3230-
agent might draw the user's attention to the erroneous
3231-
<var>errorFieldsvar> in the browser's UI and display the value of
3232-
each field in a manner that helps the user fix each error.
3227+
<li data-link-for="PaymentValidationErrors">By matching the members
3228+
of <var>errorFieldsvar> to input fields in the user agent's UI,
3229+
indicate to the end-user that something is wrong with the data of the
3230+
payment response. For example, a user agent might draw the user's
3231+
attention to the erroneous <var>errorFieldsvar> in the browser's UI
3232+
and display the value of each field in a manner that helps the user
3233+
fix each error. Similarly, if the <a>errora> member is passed,
3234+
present the error in the user agent's UI.
32333235
li>
32343236
<li data-tests=
32353237
"payment-request/payment-response/rejects_if_not_active-manual.https.html">
@@ -3268,6 +3270,7 @@

32683270
dictionary PaymentValidationErrors {
32693271
PayerErrorFields payer;
32703272
AddressErrors shippingAddress;
3273+
DOMString error;
32713274
};
32723275
pre>
32733276
<dl>
@@ -3284,6 +3287,17 @@

32843287
Represents validation errors with the <a>PaymentResponsea>'s
32853288
<a>shippingAddressa>.
32863289
dd>
3290+
<dt>
3291+
<dfn>errordfn> member
3292+
dt>
3293+
<dd>
3294+
A general description of an error with the payment from which the
3295+
user can attempt to recover from by, for example, retrying a
3296+
payment. A developer can optionally pass the <a>errora> member
3297+
on its own to give a general overview of validation issues, or it
3298+
can be passed in combination with other members of the
3299+
<a>PaymentValidationErrorsa> dictionary.
3300+
dd>
32873301
dl>
32883302
section>
32893303
<section data-dfn-for="PayerErrorFields" data-link-for=

0 commit comments

Comments
 (0)