purchasePackageWith
fun Purchases.purchasePackageWith(activity: Activity, packageToPurchase: Package, onError: (<Error class: unknown class>, userCancelled: Boolean) -> Unit = ON_PURCHASE_ERROR_STUB, onSuccess: (<Error class: unknown class>, <Error class: unknown class>) -> Unit)
Deprecated
Use purchaseWith and PurchaseParams.Builder instead
Replace with
purchaseWith()Content copied to clipboard
Make a purchase. If purchasing a subscription, it will choose the default SubscriptionOption.
Parameters
activity
Current activity
packageToPurchase
The Package you wish to purchase
onSuccess
Will be called after the purchase has completed
onError
Will be called if there was an error with the purchase