voucherPayment method

Future<bool> voucherPayment(
  1. int value, {
  2. bool printCustomerSlip = true,
  3. bool printEstablishmentSlip = false,
  4. String initiatorTransactionKey = "",
})

Function to invoke method from voucher payment with SDK the Stone

Implementation

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