InternalPurchaseController

class InternalPurchaseController(kotlinPurchaseController: PurchaseController?, javaPurchaseController: PurchaseControllerJava?, val context: Context) : PurchaseController(source)

Constructors

Link copied to clipboard
constructor(kotlinPurchaseController: PurchaseController?, javaPurchaseController: PurchaseControllerJava?, context: Context)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun purchase(activity: Activity, productDetails: ProductDetails, basePlanId: String?, offerId: String?): PurchaseResult
open suspend override fun purchase(activity: Activity, product: StoreProduct, basePlanId: String?, offerId: String?): PurchaseResult

Called when the user initiates purchasing of a product.

open suspend override fun purchase(activity: Activity, product: StoreProduct, basePlanId: String?, offerId: String?, replacement: ProductReplacement?): PurchaseResult

Called when the user initiates purchasing of a product that should replace one of their existing subscriptions, e.g. an upgrade, downgrade or plan switch.

Link copied to clipboard
open suspend override fun restorePurchases(): RestorationResult

Called when the user initiates a restore.