startTransaction method
Future<String?>
startTransaction({
- String trnType = "sale",
- String amount = "",
- String bankReferenceNo = "",
- bool printMerchantReceipt = false,
- bool printCardholderReceipt = false,
- String trnMethod = "ALL",
- int transactionNumber = 0,
override
Implementation
@override
Future<String?> startTransaction({
String trnType = "sale",
String amount = "",
String bankReferenceNo = "",
bool printMerchantReceipt = false,
bool printCardholderReceipt = false,
String trnMethod = "ALL",
int transactionNumber = 0,
}) async {
final version = await methodChannel
.invokeMethod<String>('startTransaction', {
"trnType": trnType,
"amount": amount,
"bankReferenceNo": bankReferenceNo,
"printMerchantReceipt": printMerchantReceipt,
"printCardholderReceipt": printCardholderReceipt,
"trnMethod": trnMethod,
"transactionNumber": transactionNumber,
});
return version;
}