local store = require( "plugin.google.iap.v3" ) store.init("google", storeTransaction ) local function storeTransaction( event ) local transaction = event.transaction if ( transaction.state == "purchased" ) then --handle a successful transaction here print( "productIdentifier", transaction.productIdentifier ) print( "receipt", transaction.receipt ) print( "signature:", transaction.signature ) print( "transactionIdentifier", transaction.identifier ) print( "date", transaction.date ) elseif ( transaction.state == "cancelled" ) then --handle a cancelled transaction here elseif ( transaction.state == "failed" ) then --handle a failed transaction here end --tell the store that the transaction is complete! --if you're providing downloadable content, do not call this until the download has completed store.finishTransaction( event.transaction ) end local function onContinueBtn( event ) if ( event.phase == "began" ) then store.purchase("getmygem.1") end return true end
The code was good, I made a first purchase and successful, but when I restart the app and try to do a purchase, it is not responding like nothing, no error message or anything,
Please help