launchPurchase method
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;
}