startTransaction method

  1. @override
Future<String?> startTransaction({
  1. String trnType = "sale",
  2. String amount = "",
  3. String bankReferenceNo = "",
  4. bool printMerchantReceipt = false,
  5. bool printCardholderReceipt = false,
  6. String trnMethod = "ALL",
  7. 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;
}