launchPurchase method

  1. @override
Future<String?> launchPurchase(
  1. String element,
  2. String purchase_type
)
override

Implementation

@override
Future<String?> launchPurchase(String element, String purchase_type) async {
  final List<PurchaseId> pricingList = [];
  pricingList
      .add(PurchaseId(purchaseId: element, purchaseType: purchase_type));
  final list = await methodChannel.invokeMethod<String?>(
      'launchPurchase', {"purchases": purchaseIdToJson(pricingList)});
  return list;
}