UpgradeDowngradePurchases extension Null safety

on

Methods

getAndroidPurchase(LinkFivePlan linkFivePlan) Future<GooglePlayPurchaseDetails?>
Search an existing Android Purchase by a given LinkFiveVerifiedReceipt Returns null if not found
handleAndroidSwitchPlan(LinkFivePlan oldLinkFivePlan, LinkFiveProductDetails productDetails, {ProrationMode? prorationMode}) Future<bool>
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>
Handles the Up and Downgrade of a Subscription plans Apple does not need the existing plan.