performRestore

abstract suspend fun performRestore(customerInfo: CustomerInfo): PurchaseLogicResult

Restores previously completed purchases for the given customer.

If restoration is successful, syncPurchases will automatically be called by RevenueCat to update our database. However, if you are using Amazon's store, you must call syncAmazonPurchase in your code.

Return

A PurchaseLogicResult object containing the outcome of the restoration process.

Parameters

customerInfo

An object containing information about the customer.