PayerErrors
字典用于
支付请求 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.
email
可选
DOMString
is 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
PayerErrors
object, the email address passed validation.
名称
可选
DOMString
is present in the object, the
PaymentResponse.payerName
property failed validation, and this string explains what needs to be corrected. If this property is absent, the paer name is fine
phone
可选
PaymentResponse.payerPhone
) failed validation. This property is absent if the phone number passed validation.
| 规范 | 状态 | 注释 |
|---|---|---|
|
支付请求 API
The definition of 'PayerErrors' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
PayerErrors
|
Chrome
71
Disabled
|
Edge
≤79
Disabled
|
Firefox
64
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No |
Chrome Android
71
Disabled
|
Firefox Android
64
注意事项
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
email
|
Chrome
71
Disabled
|
Edge
≤79
Disabled
|
Firefox
64
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No |
Chrome Android
71
Disabled
|
Firefox Android
64
注意事项
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
名称
|
Chrome
71
Disabled
|
Edge
≤79
Disabled
|
Firefox
64
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No |
Chrome Android
71
Disabled
|
Firefox Android
64
注意事项
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
phone
|
Chrome
71
Disabled
|
Edge
≤79
Disabled
|
Firefox
64
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No |
Chrome Android
71
Disabled
|
Firefox Android
64
注意事项
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
见实现注意事项。
用户必须明确启用此特征。
使用非标名称。
PayerErrors