Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Should I call finishTransaction when restore purchase — Gideros Forum

Should I call finishTransaction when restore purchase

RickyngkRickyngk Member
edited August 2012 in General questions
Dear,

Now I have to implement restore purchase with StoreKit:restoreCompletedTransactions(). As explanation in document,
Restore previously completed purchases. Event.TRANSACTION event is dispatched for each previously completed transaction that can be restored. Each transaction includes a copy of the original transaction.
So, in Event.TRANSACTION event, should I call StoreKit:finishTransaction(transaction) ?
storekit:restoreCompletedTransactions()	
 
storekit:addEventListener(Event.TRANSACTION, 
	function(event)
		-- do something here
		storekit:finishTransaction(event.transaction)
	end
)

Comments

Sign In or Register to comment.