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>