receipt
The MonetizationEvent
receipt
attribute returned an optional proof-of-payment receipt. It was issued from the monetization receiver to the monetization provider as proof of the total current amount received in a stream.
Value
A base64-encoded STREAM receipt. Returned null if receipts were not enabled on the payment pointer. The receipt had the total running amount streamed in the current session.
Example
<link rel="monetization" href="https://wallet.example/alice" />
<script>
const link = document.querySelector(“link[rel=‘monetization’]“);
link.addEventListener(“monetization”, (event) => {
console.log(event.receipt)})
</script>
Specifications
Specification |
---|
Web Monetization #receipt-attribute-deprecated |