PaywallPurchaseLogicWithCallback

Abstract class extending PaywallPurchaseLogic, providing methods for handling in-app purchases and restorations with completion callbacks rather than co-routines.

If you prefer to implement custom purchase and restore logic with coroutines, please implement PaywallPurchaseLogic directly.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

This method is called by RevenueCat, which in turn calls performPurchaseWithCompletion where your app's custom purchase logic is performed.

Link copied to clipboard

Performs an in-app purchase with additional purchase params, using a completion callback.

Link copied to clipboard
suspend override fun performRestore(customerInfo: CustomerInfo): PurchaseLogicResult

This method is called by RevenueCat, which in turn calls performRestoreWithCompletion where your app's custom restore logic is performed.

Link copied to clipboard
abstract fun performRestoreWithCompletion(customerInfo: CustomerInfo, completion: (PurchaseLogicResult) -> Unit)

Restores previously completed purchases for the given customer with a completion callback.