public void StartTransactionRequest(ref TransactionRequest tr, string barcodeValue) { //unpack barcode QRDEList listOut = new QRDEList(); listOut.Deserialize(barcodeValue); int depth = 0; Logger.Log("Barcode Scanned:"); Logger.Log(listOut.ToPrintString(ref depth)); long amount = Convert.ToInt64(listOut.Get(EMVQRTagsEnum.TRANSACTION_AMOUNT_54.Tag).Value); long amountOther = 0; tr = new TransactionRequest(amount + amountOther, amountOther, TransactionTypeEnum.PurchaseGoodsAndServices); EMVTerminalProcessingOutcome processingOutcome = new EMVTerminalProcessingOutcome() { NextProcessState = EMVTerminalPreProcessingStateEnum.EndProcess, UIRequestOnOutcomePresent = false, UIRequestOnRestartPresent = false, QRData = listOut, }; OnProcessCompleted(processingOutcome); }
public void StartTransactionRequest(TransactionRequest tr, string barcodeValue) { //add tracking id QRDEList listOut = new QRDEList(); listOut.Deserialize(barcodeValue); int depth = 0; Logger.Log("Barcode Presented:"); Logger.Log(listOut.ToPrintString(ref depth)); EMVTerminalProcessingOutcome processingOutcome = new EMVTerminalProcessingOutcome() { NextProcessState = EMVTerminalPreProcessingStateEnum.EndProcess, UIRequestOnOutcomePresent = false, UIRequestOnRestartPresent = false, QRData = listOut, }; OnProcessCompleted(processingOutcome); }