makePurchase
To make the purchase, you have to call this method.
Should not be called before activate
Parameters
An Activity instance.
An AdaptyPaywallProduct object retrieved from the paywall.
Optional AdaptyPurchaseParameters used to provide additional purchase options.
The result includes an AdaptyPurchaseResult object, which provides details about the purchase. If the result is AdaptyPurchaseResult.Success, it also includes the user's profile. The profile, in turn, includes details about access levels, subscriptions, and non-subscription purchases. Generally, you have to check only access level status to determine whether the user has premium access to the app.
See also
Deprecated
This method has been deprecated. Please use Adapty.makePurchase(activity: Activity, product: AdaptyPaywallProduct, params: AdaptyPurchaseParameters) instead
Replace with
import com.adapty.models.AdaptyPurchaseParameters
Adapty.makePurchase(activity, product, AdaptyPurchaseParameters.Builder().withSubscriptionUpdateParams(subscriptionUpdateParams).withOfferPersonalized(isOfferPersonalized).build(), callback)To make the purchase, you have to call this method.
Should not be called before activate
Parameters
An Activity instance.
An AdaptyPaywallProduct object retrieved from the paywall.
An AdaptySubscriptionUpdateParameters object, used when you need a subscription to be replaced with another one, read more.
Indicates whether the price is personalized, read more.
The result includes an AdaptyPurchaseResult object, which provides details about the purchase. If the result is AdaptyPurchaseResult.Success, it also includes the user's profile. The profile, in turn, includes details about access levels, subscriptions, and non-subscription purchases. Generally, you have to check only access level status to determine whether the user has premium access to the app.