Releases: defold/extension-webmonetization
Releases · defold/extension-webmonetization
Updated to support Defold 1.8.0
Updated to support Defold 1.4.0
CHANGE: This version works on Defold 1.4.0 and above
Updated string allocation code
FIX: Updated string allocation function
Updated to support latest version of Emscripten
BREAKING CHANGE: Updated to support latest version of Emscripten. Requires Defold 1.2.178
Fixed crash if document.monetization is undefined
1.0.2 Early exit from event listener if webmonetization is undefined
Fixed crash when listener was unloaded
1.0.1 Improved example. Fixed invalid callback error.
Include event details in listener response
NEW: The event listener now also returns the event details. Example:
webmonetization.set_listener(function(self, event, details)
pprint(details)
end)
Details table:
{
paymentPointer = "$ilp.uphold.com/QkG86UgXzKq8",
assetScale = 9,
amount = "26009",
requestId = "a1f728aa-21e0-4376-ae99-0ccb22642956",
assetCode = "XRP"
}