store.restore()

Type Function
Return value none
Revision Release 2022.3683
Keywords Apple, IAP, in-app purchases, restore
store.purchase()
store.*

Overview

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.

Gotchas

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.

Syntax

store.restore()