这是 实验性技术
检查 浏览器兼容性表格 要小心谨慎在生产中使用这之前。

paymentRequestOrigin 只读特性在 PaymentRequestEvent interface returns the origin where the PaymentRequest object was initialized.

句法

var aUsvString = paymentRequestEvent.paymentRequestOrigin
					

A USVString.

规范

规范 状态 注释
Payment Handler API
The definition of 'paymentRequestOrigin' in that specification.
工作草案 初始定义。

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
paymentRequestOrigin Chrome 60 Disabled
60 Disabled
Disabled ). To change preferences in Chrome, visit
Edge ≤79 Disabled
≤79 Disabled
Disabled From version ≤79: this feature is behind the #service-worker-payment-apps preference (needs to be set to 启用 ).
Firefox No IE ? Opera No Safari ? WebView Android No Chrome Android 60 Disabled
60 Disabled
Disabled ). To change preferences in Chrome, visit
Firefox Android No Opera Android No Safari iOS ? Samsung Internet Android No

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

实验。期望将来行为有所改变。

实验。期望将来行为有所改变。

用户必须明确启用此特征。

用户必须明确启用此特征。

元数据

  • 最后修改:
  1. 支付请求 API
  2. PaymentRequestEvent
  3. 构造函数
    1. PaymentRequestEvent()
  4. 特性
    1. paymentRequestId
    2. paymentRequestOrigin
    3. topOrigin
    4. total
  5. 方法
    1. openWindow()
    2. respondWith()
  6. Related pages for Payment Request API
    1. HTMLIFrameElement.allowPaymentRequest
    2. MerchantValidationEvent
    3. PaymentAddress
    4. PaymentMethodChangeEvent
    5. PaymentRequest
    6. PaymentRequestUpdateEvent
    7. PaymentResponse

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1