creditPaymentParc method

Future<bool> creditPaymentParc({
  1. required int value,
  2. int installment = 1,
  3. bool withInterest = false,
  4. bool printCustomerSlip = true,
  5. bool printEstablishmentSlip = false,
  6. String initiatorTransactionKey = "",
})

Function to invoke method from credit installment payment with SDK the Stone

Implementation

Future<bool> creditPaymentParc({
  required int value,
  int installment = 1,
  bool withInterest = false,
  bool printCustomerSlip = true,
  bool printEstablishmentSlip = false,
  String initiatorTransactionKey = "",
}) async {
  return await channel.invokeMethod(
    PaymentTypeCall.creditParc.method,
    {
      "amount": value.toString(),
      "installment": installment,
      "withInterest": withInterest,
      "printCustomerSlip": printCustomerSlip,
      "printEstablishmentSlip": printEstablishmentSlip,
      "initiatorTransactionKey": initiatorTransactionKey,
    },
  );
}