Hello everyone.
I would have a problem with the type of consumable purchases. I cannot understand where to put the code: store.consumePurchase
Currently my code is this:
local store = require( "plugin.google.iap.v3" ) local function transactionListener( event ) local transaction = event.transaction if ( transaction.state == "purchased" ) then store.consumePurchase( "money1000", transactionListener) end store.finishTransaction( transaction ) end store.init( "google", transactionListener ) store.purchase( "money1000" )
When I make the purchase and is successful (at least this works), it does not allow me to buy it again. Also waiting minutes or hours as is recommended. So is recognized me as purchase un-consumable. The question is: what should I do to make it recognize consumable and then buy it back again? (Obviously I know I have to redo a new in App-ID).
Note: My target is currently only Play Store
Thanks for the attention.