openAttachCardScreen method

Future<void> openAttachCardScreen({
  1. required String terminalKey,
  2. required String publicKey,
  3. required CustomerOptions customerOptions,
  4. FeaturesOptions featuresOptions = const FeaturesOptions(),
})

Открытие экрана привязки карт

Implementation

Future<void> openAttachCardScreen({
  required String terminalKey,
  required String publicKey,
  required CustomerOptions customerOptions,
  FeaturesOptions featuresOptions = const FeaturesOptions(),
}) async {
  _checkActivated();

  final method = Method.attachCardScreen;

  final arguments = <String, dynamic>{
    method.terminalKey: terminalKey,
    method.publicKey: publicKey,
    method.customerOptions: customerOptions.arguments,
    method.featuresOptions: featuresOptions.arguments,
  }..removeWhere((key, value) => value == null);

  return _channel.invokeMethod(method.name, arguments);
}