cardTransaction static method
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;
}