restorePurchases

open suspend override fun restorePurchases(): RestorationResult(source)

Called when the user initiates a restore.

Add your restore logic here, making sure that the user's subscription status is updated after restore, and return its result.

Return

A RestorationResult that's Restored if the user's purchases were restored or Failed(error) if they weren't. Note: Restored does not imply the user has an active subscription, it just means the restore had no errors.