configurePinpad method

Future<ElginResponse?> configurePinpad({
  1. required String appName,
  2. required String version,
  3. required String textPinpad,
})

Implementation

Future<ElginResponse?> configurePinpad({
  required String appName,
  required String version,
  required String textPinpad,
}) async {
  try {
    final response = await channel.invokeMethod(
      PaymentTypeCall.CONFIGURE_PINPAD.method,
      {
        'name': appName,
        'version': version,
        'textPinpad': textPinpad,
      },
    );

    final model = ElginResponse.fromJson(response.toString());

    return model;
  } catch (_) {
    return null;
  }
}