MDN self-hosted library · e01.org

PaymentRequestEvent: paymentRequestOrigin property

Web-Based Payment Handler APIservice

Open notebook · 1 cells web-api-instance-property upstream source

Web-Based Payment Handler APIservice

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

Browser compatibility

See also