purchase method
Initiates purchase of a product.
Returns PurchaseResult with PurchaseResultType.activeSubscription if the user now has a subscription, PurchaseResultType.activePurchase if the user made a purchase, other PurchaseResult if the purchase failed for any reason (Run with Xcode for more datails).
Implementation
Future<PurchaseResult> purchase(String productId) async {
return ApphudPlusPlatform.instance.purchase(productId);
}