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