安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
PaymentDetailsUpdate
dictionary's
error
property is a human-readable
DOMString
which provides an error message to be displayed if the specified information doesn't offer any valid shipping options.
errorString = paymentDetailsUpdate.error; paymentDetailsUpdate.error = errorString;
A
DOMString
specifying the string to display to the user if the information specified in the
PaymentDetailsUpdate
doesn't provide any valid shipping options. This happens if both of the following are true:
PaymentRequest
specifies using its
requestShipping
property that shipping information is required.
PaymentDetailsUpdate
object specifies no valid shipping options in its
shippingOptions
列表。
This message can be used to explain to the user why they cannot submit their payment as currently specified—whether that's because the selected products cannot be shipped to their region or because their address is not served by any of the shipping companies you use.
| 规范 | 状态 | 注释 |
|---|---|---|
|
支付请求 API
The definition of 'PaymentDetailsUpdate.error' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
error
|
Chrome 61 | Edge ≤18 |
Firefox
55
注意事项
Disabled
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No | Chrome Android 60 |
Firefox Android
55
注意事项
Disabled
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 8.0 |
完整支持
不支持
兼容性未知
见实现注意事项。
用户必须明确启用此特征。
PaymentDetailsUpdate
error
shippingAddressErrors