This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.
The topOrigin
read-only property of the PaymentRequestEvent
interface returns the top level payee origin where the PaymentRequest
object was initialized.
Syntax
var aUsvString = paymentRequestEvent.topOrigin
Value
A USVString
Specifications
Specification | Status | Comment |
Payment Handler APIThe definition of 'topOrigin' in that specification. | Working Draft | Initial definition. |
Browser compatibility
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Chrome
Full support 70 |
Edge
Full support 79 |
Firefox
No support No |
IE
No support No |
Opera
Full support 57 |
Safari
No support No |
WebView Android
No support No |
Chrome Android
Full support 70 |
Firefox Android
No support No |
Opera Android
Full support 49 |
Safari iOS
No support No |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.'
- Experimental. Expect behavior to change in the future.
PaymentRequestEvent.topOrigin by Mozilla Contributors is licensed under CC-BY-SA 2.5.