UpgradeDowngradePurchases extension

on

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 plan oldPurchaseDetails given by the LinkFive Plugin productDetails from the purchases you want to switch to prorationMode 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.