onPurchaseSuccess

open override fun onPurchaseSuccess(purchasedInfo: AdaptyPurchasedInfo?, product: AdaptyPaywallProduct, context: Context)

This callback is invoked when a successful purchase is made.

The default implementation is simply calling onBackPressed method of the Activity the AdaptyPaywallView is attached to.

Parameters

purchasedInfo

An AdaptyPurchasedInfo object containing up to date information about the purchase and the user's profile.

product

An AdaptyPaywallProduct of the purchase.

context

A UI Context within which the event occurred.