PayerErrors dictionary is used by the Payment Request API to indicate the presence of—and to explain how to correct—validation errors in the payer details. For each field in the payment information that fails validation, the
PayerErrors object contains a string explaining the error.
The payer details include the payer's name, phone number, and email address.
- If present, this
DOMStringis a string describing the validation error from which the payer's email address—as given by
PaymentResponse.payerEmail—currently suffers. If this property is absent from the
PayerErrorsobject, the email address passed validation.
- If this
DOMStringis present in the object, the
PaymentResponse.payerNameproperty failed validation, and this string explains what needs to be corrected. If this property is absent, the paer name is fine
- If present, this string is an error message explaining why the payer's phone number (
PaymentResponse.payerPhone) failed validation. This property is absent if the phone number passed validation.
|Payment Request API
The definition of 'PayerErrors' in that specification.
|Candidate Recommendation||Initial definition.|
BCD tables only load in the browser