UpgradeDowngradePurchases extension
Methods
-
handleAndroidSwitchPlan(
LinkFivePlan oldLinkFivePlan, LinkFiveProductDetails productDetails, {ProrationMode? prorationMode}) → Future< bool> -
Available on LinkFivePurchasesImpl, provided by the UpgradeDowngradePurchases extension
Handles the Up and Downgrade of a Subscription planoldPurchaseDetails
given by the LinkFive PluginproductDetails
from the purchases you want to switch toprorationMode
default replaces immediately the subscription, and the remaining time will be prorated and credited to the user. Check https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode for more information -
handleIosSwitchPlan(
LinkFiveProductDetails productDetails) → Future< bool> -
Available on LinkFivePurchasesImpl, provided by the UpgradeDowngradePurchases extension
Handles the Up and Downgrade of a Subscription plans Apple does not need the existing plan.