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
Specification |
---|
Web Monetization API #paymentpointer-attribute |
Browser compatibility
desktop | mobile | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on iOS | Samsung Internet | Puma Browser | |
paymentPointer | Yes | Yes | Yes | No | Yes | No | No | No | No | No | No | No | Yes |
- Full Support
- No Support
- You'll need to use a Web Monetization Extension