Skip to content
Web Monetization logoWeb Monetization
GitHub

paymentPointer

The monetization event’s paymentPointer attribute returns the URL representing the payment endpoint used by the incoming Web Monetization payment. The returned value is the value it was initialized with.

Example

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

Specifications