PayerErrors

The PayerErrors dictionary is used by the Payment Request API. It is used to represent validation errors with one or more payer details.

Payer details are any of the payer's name, payer's phone number, and payer's email.

Properties

email
email property indicates that the payer's email suffers from a validation error. In the browser's UI, this property corresponds to the input field that provided the PaymentResponse's payerEmail attribute's value.
 
name
name property indicates that the payer's name suffers from a validation error. In the browser's UI, this property corresponds to the input field that provided the PaymentResponse's payerName attribute's value.
 
phone
phone property indicates that the payer's phone number suffers from a validation error. In the browser's UI, this property corresponds to the input field that provided the PaymentResponse's payerPhone attribute's value.

Example

dictionary PayerErrors {
  DOMString email;
  DOMString name;
  DOMString phone;
};

Specifications

Specification Status Comment
Payment Request API
The definition of 'PayerErrors' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

No compatibility data found. Please contribute data for "api.AddressErrors" (depth: 1) to the MDN compatibility data repository.

 

Document Tags and Contributors

Contributors to this page: akansha2608, marcoscaceres
Last updated by: akansha2608,