handleIosSwitchPlan method

Future<bool> handleIosSwitchPlan(
  1. LinkFiveProductDetails productDetails
)

Handles the Up and Downgrade of a Subscription plans Apple does not need the existing plan.

Implementation

Future<bool> handleIosSwitchPlan(LinkFiveProductDetails productDetails) async {
  // init the purchase
  return InAppPurchase.instance
      .buyNonConsumable(purchaseParam: PurchaseParam(productDetails: productDetails.productDetails));
}