That must be whats going on. Rob, I am now attempting to test Android IAP, and am having issues with getting any response on my transaction listener.
When I call store.purchase, google play pops up a message with the title of my IAP item and its price, whether I cancel or purchase the item, the window closes and I get no response to my transaction listener, thus my app is stuck in limbo.
Any idea why this would be happening? I am using the same listener code for both IOS and Android, I assume it works for both platforms?
I am using the following code:
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