purchases / com.revenuecat.purchases / restorePurchasesWith

restorePurchasesWith

fun Purchases.restorePurchasesWith(onError: ErrorFunction = onErrorStub, onSuccess: ReceivePurchaserInfoSuccessFunction): Unit

Restores purchases made with the current Play Store account for the current user. If you initialized Purchases with an appUserID any receipt tokens currently being used by other users of your app will not be restored. If you used an anonymous id, i.e. you initialized Purchases without an appUserID, any other anonymous users using the same purchases will be merged.

Parameters

onSuccess - Will be called after the call has completed.

onError - Will be called after the call has completed with an error.