web api instance property
PaymentRequestEvent: paymentRequestOrigin property
Limited availabilityAvailable in workers
The paymentRequestOrigin read-only property of the
PaymentRequestEvent interface returns the origin where the
PaymentRequest object was initialized.
Value
A string.
Examples
self.addEventListener("paymentrequest", (e) => {
console.log(e.paymentRequestOrigin);
});
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.