inAppPurchasePayment static method
In-App Purchase Payment
Implementation
static Future<void> inAppPurchasePayment({
required String userId,
required List<String> productIds,
required double amount,
String paymentType = "In App Purchase",
Function()? onShowToast,
Function()? onPaymentSuccess,
Function()? onPaymentFailure,
}) async {
final request = PurchaseRequest(
userId: userId,
productIds: productIds,
amount: amount,
paymentType: paymentType,
);
InAppPurchaseHelper().init(request);
await InAppPurchaseHelper().debugProductLoading();
InAppPurchaseHelper().initStoreInfo();
}