try To Restore Purchases
suspend fun tryToRestorePurchases(paywallView: PaywallView?, presentsFailureAlert: Boolean = true): RestorationResult(source)
Attempt to restore purchases.
Return
A RestorationResult indicating the result of the restoration.
Parameters
paywall View
The paywall view that initiated the restore or null if initiated externally.
presents Failure Alert
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.