handleMethodCall method

Future handleMethodCall(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethodCall(MethodCall call) async {
  print(call.method);
  switch (call.method) {
    case "init":
      final Map<dynamic, dynamic> options = call.arguments["options"];
      ResponseListener<RazorPayResponse> listener = call.arguments["callback"];
      // print(options);
      razorPay = RazorPayWeb(options,listener: listener);
      break;
    case "open":
      razorPay.open();
      break;
  }
}