Difference between revisions of "StoreKit:restoreCompletedTransactions"
From GiderosMobile
| m (Text replacement - "<source" to "<syntaxhighlight") | |||
| Line 11: | Line 11: | ||
| ''event.errorDescription'' fields contain the details of the error.<br /> | ''event.errorDescription'' fields contain the details of the error.<br /> | ||
| <br /></translate> | <br /></translate> | ||
| − | < | + | <syntaxhighlight lang="lua"> | 
|   StoreKit:restoreCompletedTransactions() |   StoreKit:restoreCompletedTransactions() | ||
| </source> | </source> | ||
Revision as of 14:31, 13 July 2023
Available since: Gideros 2012.2.2
Class: StoreKit
Description
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.
After the transactions are delivered, Event.RESTORE_TRANSACTIONS_COMPLETE event is dispatched. If an error occurred while restoring transactions, event.errorCode and 
event.errorDescription fields contain the details of the error.
<syntaxhighlight lang="lua">
StoreKit:restoreCompletedTransactions()
</source>
