openAttachCardScreen method
Future<void>
openAttachCardScreen({
- required String terminalKey,
- required String publicKey,
- required CustomerOptions customerOptions,
- 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);
}