callPayerMaxService method

Future callPayerMaxService(
  1. BuildContext context, {
  2. num amount = 100,
  3. num coins = 100,
  4. String planId = "PLAN_100",
})

Implementation

Future callPayerMaxService(
  BuildContext context, {
  num amount = 100,
  num coins = 100,
  String planId = "PLAN_100",
}) async {
  await IncodesPaymentServices.payerMaxPayment(
    amount: amount,
    coins: coins,
    coinPlanId: planId,
    onPaymentSuccess: () {
      IncodesListener().showToast(msg: "PayerMax Payment Success!");
    },
    onPaymentFailure: () {
      IncodesListener().showToast(msg: "PayerMax Payment Failed");
    },
  );
}