tryToRestorePurchases

suspend fun tryToRestorePurchases(paywallView: PaywallView?, presentsFailureAlert: Boolean = true): RestorationResult(source)

Attempt to restore purchases.

Return

A RestorationResult indicating the result of the restoration.

Parameters

paywallView

The paywall view that initiated the restore or null if initiated externally.

presentsFailureAlert

When false, suppresses the SDK's own restore-failure and restore-from-web prompts. Used by callers, such as the Customer Center, that present their own restore-outcome UI.