incomingPayment
The monetization
event’s incomingPayment
attribute can be used to verify the receipt of a payment. Today, the monetization
event fires when the Web Monetization agent successfully creates an outgoing payment request at the Web Monetization provider. Since it’s only a request to send an outgoing payment, there’s no guarantee at this point that a payment has been received.
The incomingPayment
attribute returns the URL that represents the incoming payment at the Web Monetization receiver. The returned value is the value it was initialized with. By querying the URL, you can get the receivedAmount
.
Example
Specifications
Specification |
---|
Web Monetization #incomingpayment-attribute |