cardTransaction static method

  1. @Deprecated("can be invoked with pay method")
Future<String> cardTransaction(
  1. dynamic json
)

Implementation

@Deprecated("can be invoked with pay method")
static Future<String> cardTransaction(json) async {
  Completer<String> completer = Completer<String>();
  _eventChannel.receiveBroadcastStream().listen((event) {
    debugPrint(event);
    completer.complete(event);
  }, onError: (error) {
    debugPrint(error);
    completer.completeError(error);
  });
  _channel.invokeMethod('cardTransaction', json);
  return completer.future;
}