I implemented in-app billing for my game, i am testing various condition that can cause problem in this process.
I used consumable items (coin) in it.
when a user purchase coin,this code will happen in callback :
if ( transaction.state == "purchased" ) then print( "Transaction succuessful!" ) store.finishTransaction( transaction ) timer.performWithDelay(10, function() store.consumePurchase( products[1],transactionCallback); end )
As i read in this post,if network outage happens before store.finishtranscation , market will send transaction again and again.if user closed the app in this situation(purchased but not finished transction due to network outage ) how should i recover the purchase after user started app again?
Thanks
Arash