A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestEvent/paymentRequestOrigin below:

PaymentRequestEvent: paymentRequestOrigin property - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. PaymentRequestEvent
  4. paymentRequestOrigin

Filter sidebar

In this article
  1. Payment Handler API Experimental
  2. PaymentRequestEvent Experimental
  3. Constructor
    1. PaymentRequestEvent() Experimental
  4. Instance properties
    1. methodData Experimental
    2. modifiers Experimental
    3. paymentRequestId Experimental
    4. paymentRequestOrigin Experimental
    5. topOrigin Experimental
    6. total Experimental
  5. Instance methods
    1. changePaymentMethod() Experimental
    2. openWindow() Experimental
    3. respondWith() Experimental
  6. Inheritance
    1. ExtendableEvent
    2. Event
  7. Related pages for Payment Handler API
    1. CanMakePaymentEvent Experimental
    2. PaymentManager Experimental
    3. ServiceWorkerRegistration.paymentManager Experimental
In this article PaymentRequestEvent: paymentRequestOrigin property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Note: This feature is only available in Service Workers.

The paymentRequestOrigin read-only property of the PaymentRequestEvent interface returns the origin where the PaymentRequest object was initialized.

Value

A string.

Examples

js

self.addEventListener("paymentrequest", (e) => {
  console.log(e.paymentRequestOrigin);
});
Specifications Specification Payment Handler API
# dom-paymentrequestevent-paymentrequestorigin
Browser compatibility See also Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Apr 12, 2024 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4