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();
            }
        }
Beispiel #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);
                AccountResponse = new AccountResponse(br);
                TraceResponse   = new TraceResponse(br);
                ExtDataResponse = new ExtDataSubGroup(br);

                MapResponse();
            }
        }
Beispiel #3
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();
            }
        }
        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();
            }
        }