@@ -3224,12 +3224,14 @@ <h2>
3224
3224
< li > Set < var > response</ var > .< a > [[\retryPromise]]</ a > to
3225
3225
< var > retryPromise</ var > .
3226
3226
</ li >
3227
- < li > By matching the members of < var > errorFields</ var > 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 > errorFields</ var > 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 > errorFields</ var > 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 > errorFields</ var > 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 > error</ a > member is passed,
3234
+ present the error in the user agent's UI.
3233
3235
</ li >
3234
3236
< li data-tests =
3235
3237
"payment-request/payment-response/rejects_if_not_active-manual.https.html ">
@@ -3268,6 +3270,7 @@ <h3>
3268
3270
dictionary PaymentValidationErrors {
3269
3271
PayerErrorFields payer;
3270
3272
AddressErrors shippingAddress;
3273
+ DOMString error;
3271
3274
};
3272
3275
</ pre >
3273
3276
< dl >
@@ -3284,6 +3287,17 @@ <h3>
3284
3287
Represents validation errors with the < a > PaymentResponse</ a > 's
3285
3288
< a > shippingAddress</ a > .
3286
3289
</ dd >
3290
+ < dt >
3291
+ < dfn > error</ dfn > 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 > error</ a > 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 > PaymentValidationErrors</ a > dictionary.
3300
+ </ dd >
3287
3301
</ dl >
3288
3302
</ section >
3289
3303
< section data-dfn-for ="PayerErrorFields " data-link-for =
0 commit comments