Firefox Tomorrow

web api instance property

PaymentRequestEvent: topOrigin property

View on MDN ↗

Limited availabilityAvailable in workers

The topOrigin read-only property of the PaymentRequestEvent interface returns the top-level payee origin where the PaymentRequest object was initialized.

Value

A string.

Examples

self.addEventListener("paymentrequest", (e) => {
  console.log(e.topOrigin);
});

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also