protected override void ParseResponse(BinaryReader br)
        {
            base.ParseResponse(br);

            if (DeviceResponseCode == "000000")
            {
                TotalRecords    = int.Parse(br.ReadToCode(ControlCodes.FS));
                RecordNumber    = int.Parse(br.ReadToCode(ControlCodes.FS));
                HostResponse    = new HostResponse(br);
                CardType        = ((TerminalCardType)int.Parse(br.ReadToCode(ControlCodes.FS))).ToString().Replace("_", " ");
                TransactionType = ((TerminalTransactionType)int.Parse(br.ReadToCode(ControlCodes.FS))).ToString().Replace("_", " ");

                int originalTransactionTypeId;
                if (int.TryParse(br.ReadToCode(ControlCodes.FS), out originalTransactionTypeId))
                {
                    TerminalTransactionType transType = (TerminalTransactionType)originalTransactionTypeId;
                    OriginalTransactionType = transType.ToString().Replace("_", " ");
                }

                AmountResponse     = new AmountResponse(br);
                AccountResponse    = new AccountResponse(br);
                TraceResponse      = new TraceResponse(br);
                CashierResponse    = new CashierSubGroup(br);
                CommercialResponse = new CommercialResponse(br);
                CheckSubResponse   = new CheckSubGroup(br);
                ExtDataResponse    = new ExtDataSubGroup(br);

                MapResponse();
            }
        }
示例#2
0
        protected override void ParseResponse(BinaryReader br)
        {
            base.ParseResponse(br);

            if (DeviceResponseCode == "000000")
            {
                hostResponse    = new HostResponse(br);
                transactionType = br.ReadToCode(ControlCodes.FS);
                amountResponse  = new AmountResponse(br);
                traceResponse   = new TraceResponse(br);
                extDataResponse = new ExtDataSubGroup(br);
            }
        }
        protected override void ParseResponse(BinaryReader br)
        {
            base.ParseResponse(br);

            if (DeviceResponseCode == "000000")
            {
                hostResponse    = new HostResponse(br);
                transactionType = ((TerminalTransactionType)Int32.Parse(br.ReadToCode(ControlCodes.FS))).ToString().Replace("_", " ");
                amountResponse  = new AmountResponse(br);
                traceResponse   = new TraceResponse(br);
                extDataResponse = new ExtDataSubGroup(br);
            }
        }
示例#4
0
        protected override void ParseResponse(BinaryReader br)
        {
            base.ParseResponse(br);

            if (acceptedCodes.Contains(DeviceResponseCode))
            {
                HostResponse    = new HostResponse(br);
                TransactionType = ((TerminalTransactionType)Int32.Parse(br.ReadToCode(ControlCodes.FS))).ToString().Replace("_", " ");
                AmountResponse  = new AmountResponse(br);
                AccountResponse = new AccountResponse(br);
                TraceResponse   = new TraceResponse(br);
                ExtDataResponse = new ExtDataSubGroup(br);

                MapResponse();
            }
        }
示例#5
0
        protected override void ParseResponse(BinaryReader br)
        {
            base.ParseResponse(br);

            if (DeviceResponseCode == "000000")
            {
                HostResponse       = new HostResponse(br);
                TransactionType    = ((TerminalTransactionType)Int32.Parse(br.ReadToCode(ControlCodes.FS))).ToString().Replace("_", " ");
                AmountResponse     = new AmountResponse(br);
                AccountResponse    = new AccountResponse(br);
                TraceResponse      = new TraceResponse(br);
                AvsResponse        = new AvsResponse(br);
                CommercialResponse = new CommercialResponse(br);
                EcomResponse       = new EcomSubGroup(br);
                ExtDataResponse    = new ExtDataSubGroup(br);

                MapResponse();
            }
        }