Skip to main content

MonetizationEvent.paymentPointer

The paymentPointer property of the MonetizationEvent interface returns a URL representing the payment end-point.

Value

A string containing a payment URL. Represents a payment end-point. The returned value is the value it was initialized with.

Examples

<link rel="monetization" href="https://example.com/pay" />
<script>
const link = document.querySelector(“link[rel=‘monetization’]);
link.addEventListener(“monetization”, (event) => {
console.log(event.paymentPointer)})
</script>

Specifications

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
WebView Android
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
Puma Browser
paymentPointer
YesYesYesNoYesNoNoNoNoNoNoNoYes
Full Support
No Support
You'll need to use a Web Monetization Extension