Payment busy, report progress. Fires proper events.
The event to parse the data
property from
Payment stream started, first payment sent. Fires proper events.
Payment stream stopped. Fires proper events.
True when meta tag was removed or payment pointer changed
Is Web Monetization supported (document.monetization != undefined)?
Returns wether the document.monetization.state equals 'pending'
True if state equals 'pending'
Checks the document.monetization.state property for a 'pending'
or 'stopped'
state.
True if state property is defined and not 'started'
Returns wether the document.monetization.state equals 'started'
True if state equals 'started'
Returns wether the document.monetization.state equals 'stopped'
True if state equals 'stopped'
Start listening for changes on the meta[name=monetization] in the head section
Resets the paymnet pointer back to null.
Search for static meta tag.
True if found, false otherwise
Sends a monetizationprogress event from the monetization event source.
The details to be sent with the event.
Sets the monetization state. And optionally sends a matching event from the monetization event source.
New state to set
Sets a new payment pointer string and generates a unique (uuid v4) monetizationId.
The new payment pointer string
Start detecting meta tags
Monetization meta tag found, no payments sent yet
Generated using TypeDoc
Fetch this class from your WmpClient object, instead of instantiating it yourself!