安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
MerchantValidationEvent
接口的
支付请求 API
enables a merchant to verify themselves as allowed to use a particular payment handler.
To learn more about merchant validation, see Merchant validation in Payment processing concepts .
MerchantValidationEvent()
安全上下文
MerchantValidationEvent
object describing a
merchantvalidation
event that will be sent to the payment handler to request that it validate the merchant.
MerchantValidationEvent.methodName
安全上下文
DOMString
providing a unique payment method identifier for the payment handler that's requiring validation. This may be either one of the standard payment method identifier strings or a URL that both identifies and handles requests for the payment handler, such as
https://apple.com/apple-pay
.
MerchantValidationEvent.validationURL
安全上下文
USVString
specifying a URL from which the site or app can fetch payment handler specific validation information. Once this data is retrieved, the data (or a promise resolving to the validation data) should be passed into
complete()
to validate that the payment request is coming from an authorized merchant.
MerchantValidationEvent.complete()
安全上下文
validationURL
into
complete()
to complete the validation process for the
PaymentRequest
.
| 规范 | 状态 | 注释 |
|---|---|---|
|
支付请求 API
The definition of 'MerchantValidationEvent' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
MerchantValidationEvent
|
Chrome 不支持 No | Edge 不支持 No |
Firefox
64
注意事项
Disabled
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No | Chrome Android 不支持 No |
Firefox Android
64
注意事项
Disabled
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
MerchantValidationEvent()
构造函数
|
Chrome 不支持 No | Edge 不支持 No |
Firefox
64
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No | Chrome Android 不支持 No |
Firefox Android
64
注意事项
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
complete()
|
Chrome 不支持 No | Edge 不支持 No |
Firefox
64
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 不支持 No |
Firefox Android
64
注意事项
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
methodName
|
Chrome 不支持 No | Edge 不支持 No |
Firefox
64
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No | Chrome Android 不支持 No |
Firefox Android
64
注意事项
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
validationURL
|
Chrome 不支持 No | Edge 不支持 No |
Firefox
64
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No | Chrome Android 不支持 No |
Firefox Android
64
注意事项
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
完整支持
不支持
兼容性未知
见实现注意事项。
用户必须明确启用此特征。
MerchantValidationEvent