Difference between revisions of "StoreKit:restoreCompletedTransactions"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2012.2.2<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2012.2.2<br/>
<br />
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/StoreKit|StoreKit]]<br/>
Restore previously completed purchases. `Event.TRANSACTION` event is dispatched for each previously completed transaction that can be restored. <br />
+
=== <translate>Description</translate> ===
 +
<translate><br />
 +
Restore previously completed purchases. [[Special:MyLanguage/Event.TRANSACTION|Event.TRANSACTION]] event is dispatched for each previously completed transaction that can be restored. <br />
 
Each transaction includes a copy of the original transaction.<br />
 
Each transaction includes a copy of the original transaction.<br />
 
<br />
 
<br />
After the transactions are delivered, `Event.RESTORE_TRANSACTIONS_COMPLETE` event is dispatched. If an error occurred while restoring transactions, `event.errorCode` and <br />
+
After the transactions are delivered, [[Special:MyLanguage/Event.RESTORE_TRANSACTIONS_COMPLETE|Event.RESTORE_TRANSACTIONS_COMPLETE]] event is dispatched. If an error occurred while restoring transactions, ''event.errorCode'' and <br />
`event.errorDescription` fields contain the details of the error.<br />
+
''event.errorDescription'' fields contain the details of the error.<br />
<br />
+
<br /></translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  StoreKit:restoreCompletedTransactions()
 
  StoreKit:restoreCompletedTransactions()
</source>
+
</syntaxhighlight>

Latest revision as of 14:33, 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.

 StoreKit:restoreCompletedTransactions()