PayerErrors - Web APIs 编辑
The 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.
Properties
email
Optional- If present, this
DOMString
is a string describing the validation error from which the payer's email address—as given byPaymentResponse.payerEmail
—currently suffers. If this property is absent from thePayerErrors
object, the email address passed validation. name
Optional- If this
DOMString
is present in the object, thePaymentResponse.payerName
property failed validation, and this string explains what needs to be corrected. If this property is absent, the paer name is fine phone
Optional- 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.
Example
Specifications
Specification | Status | Comment |
---|---|---|
Payment Request API The definition of 'PayerErrors' in that specification. | Candidate Recommendation | Initial definition. |
Browser compatibility
BCD tables only load in the browser
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论