callHandler static method

Future callHandler(
  1. MethodCall methodCall
)

Implementation

static Future<dynamic> callHandler(MethodCall methodCall) async {
  switch (methodCall.method) {
    case 'paymentResult':
      _validateResponse(methodCall.arguments.toString());
      return true;
    case 'exception':
      _responseListener!.onPaymentException(
          AppLocalizations.current.athmExceptionTitle,
          AppLocalizations.current.athmExceptionMessage);
      return true;
    case 'sendPaymentResult':
      print("sendPaymentResult");
      return true;
    default:
      return false;
  }
}