receipt.js

Members

(constant) assumedAssetScale#

assetScale can't be verified using receipt service (https://github.com/coilhq/receipt-verifier/issues/27) so it is hard coded and assumed to be 9 (this is used by coil wallet)
Source:

Methods

verifyReceipt('monetizationprogress', receiptService)#

Verifies receipt by sending it to the recipt verifier service and modifying the users account balance accordigly.
Parameters:
NameTypeDescription
'monetizationprogress'objectevent's detail property, with userId included.
receiptServicestringreceiptService URL
Source: