@@ -3224,12 +3224,14 @@ <h2>
32243224 < li > Set < var > response</ var > .< a > [[\retryPromise]]</ a > to
32253225 < var > retryPromise</ var > .
32263226 </ 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.
32333235 </ li >
32343236 < li data-tests =
32353237 "payment-request/payment-response/rejects_if_not_active-manual.https.html ">
@@ -3268,6 +3270,7 @@ <h3>
32683270 dictionary PaymentValidationErrors {
32693271 PayerErrorFields payer;
32703272 AddressErrors shippingAddress;
3273+ DOMString error;
32713274 };
32723275 </ pre >
32733276 < dl >
@@ -3284,6 +3287,17 @@ <h3>
32843287 Represents validation errors with the < a > PaymentResponse</ a > 's
32853288 < a > shippingAddress</ a > .
32863289 </ 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 >
32873301 </ dl >
32883302 </ section >
32893303 < section data-dfn-for ="PayerErrorFields " data-link-for =
0 commit comments