creditParcTransaction method

Future<ElginResponse?> creditParcTransaction({
  1. required String value,
  2. required String parc,
  3. required String financ,
})

Implementation

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

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

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