voucherPayment method
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,
},
);
}