defold (official)
defold/extension-webmonetization
An HTML5 native extension that integrates the Web Monetization JavaScript
API, so a game can detect whether a player has an active payment stream. It
registers a webmonetization Lua module with is_monetized,
set_listener and EVENT_* constants for the stream state.
Lua API not typed — upstream ships no .script_api, so resolve skips it.
- GitHub: defold/extension-webmonetization — pinned to
4.0.0(released while Defold 1.7.0 was current)- Pick a release from defold/extension-webmonetization releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Set
payment_pointerin a[webmonetization]section ofgame.project. - Call
webmonetization.is_monetized()or register a listener withwebmonetization.set_listenerto react to payment events.
- Pick a release from defold/extension-webmonetization releases and add its Source code (zip) URL (or a packaged