debitTransaction method

Future<ElginResponse?> debitTransaction({
  1. required String value,
})

Implementation

Future<ElginResponse?> debitTransaction({
  required String value,
}) async {
  try {
    final response = await channel.invokeMethod(
      PaymentTypeCall.DEBIT.method,
      {
        'value': value,
      },
    );

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

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