Hi, i tried to test the amazon in-app purchase plugin and it works fine, but after i purchased the item, the storeListener is not calling and i can not do anything to give the item when it is purchased. The Listener is not called because i saw it in the adb.
Here’s the listener:
local store function storeListener( event ) local transaction = event.transaction if ( transaction.state == "purchased" ) then local buttonsound = audio.play( Sound4 ) print( "product identifier", transaction.productIdentifier ) print( "receipt", transaction.receipt ) print( "transaction identifier", transaction.identifier ) print( "user who made purchase", transaction.userId ) ----------------------give 1000 coins elseif ( transaction.state == "revoked" ) then print( "product identifier", transaction.productIdentifier ) print( "receipt", transaction.receipt ) print( "transaction identifier", transaction.identifier ) print( "user who revoked purchase", transaction.userId ) elseif ( transaction.state == "failed" ) then print( "transaction failed", transaction.errorType, transaction.errorString ) else print( "(unknown event)" ) end store.finishTransaction(transaction) end
if someone has any idea about it, please help me.