Type Function Return value none Revision Release 2024.3703 Keywords Apple, IAP, in-app purchases, restore store.purchase() store.*
Users who wipe the information on a device or buy a new device may wish to restore previously purchased items. This function initiates the process of retrieving all valid purchases.
During this process, the storeTransaction listener defined in store.init() may be called multiple times, once for each item. Once completed, a transaction state "restoreCompleted" is called.
For Apple IAP, the transaction state of restored items will be "restored"
and the originalReceipt
, originalIdentifier
, and originalDate
fields of the transaction object will provide context about the original purchase.
store.restore()