MDN self-hosted library · e01.org

PaymentRequestEvent: paymentRequestId property

Web-Based Payment Handler APIservice

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

Web-Based Payment Handler APIservice

The paymentRequestId read-only property of the PaymentRequestEvent interface returns the ID of the PaymentRequest object.

Value

A string containing the ID.

Examples

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

Specifications

Browser compatibility

See also