web api instance property
PaymentRequestEvent: paymentRequestId property
Limited availabilityAvailable in workers
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
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.