Skip to content

Instantly share code, notes, and snippets.

@shoaibjdev
Created June 27, 2017 12:06
Show Gist options
  • Save shoaibjdev/ebd608e57da5da0923f5bcd489d39fdd to your computer and use it in GitHub Desktop.
Save shoaibjdev/ebd608e57da5da0923f5bcd489d39fdd to your computer and use it in GitHub Desktop.
$ node socketQueue.js --upstreamHost=10.180.90.29 --upstreamPort=12103 --listenPort=2014 --vv --logFile=log.txt --dangerous --listenHttpPort=9090
2017-06-27 15:04:57 - info: Important: starting...
2017-06-27 15:04:57 - info: Remote host configuration name: smartVista
2017-06-27 15:04:57 - info: Connecting to upstream server 10.180.90.29:12103
2017-06-27 15:04:57 - info: Relay raw ISO-8583 server is now running on port 2014
2017-06-27 15:04:57 - info: Relay HTTP server is now running on port 9090
2017-06-27 15:04:57 - info: Connected to upstream 10.180.90.29:12103!
2017-06-27 15:04:57 - info: Processing queue [pending 0 / total 0]
2017-06-27 15:04:57 - info: The queue is empty
2017-06-27 15:05:03 - info: Client ::ffff:10.137.160.59:52666 connected
2017-06-27 15:05:03 - info: Client ::ffff:10.137.160.59:52666 sent data (256b)
2017-06-27 15:05:03 - verbose: [1200F67005C188C0A0000000000006000038101140463000400201000000050100000000050100201727061049046100000010490420172706104904BANK3.......200151059990694040005BANK33E5BD7BFB48BMOB00002000000000105817404404130525029728001130525029728002004Y12300840412000005BANK3.]
2017-06-27 15:05:03 - verbose:
::ffff:10.137.160.59:52666
================================================================================================
Message Type Indicator [0].......................1200
Bitmap [1].......................................F67005C188C0A0000000000006000038
Primary Account Number [2].......................1140463000
Processing Code [3]..............................400201
Amount, Transaction [4]..........................50100
Amount, Cardholder Billing [6]...................50100
Transmission Date and Time [7]...................20172706104904
Conversion Rate, Cardholder Billing [10].........61000000
System Trace Audit Number [11]...................104904
Time, Local Transaction [12].....................20172706104904
Pos Entry Mode [22]..............................BANK3
Function Code [24]...............................200
Pos Condition Code [25]..........................1510
Card acceptor business code [26].................5999
Acquiring Institution Ident Code [32]............940400
Forwarding institution identification code [33]..BANK3
Retrieval Reference Number [37]..................3E5BD7BFB48B
Card Acceptor Terminal Identification [41].......MOB00002
Merchant Id [42].................................000000000105817
Currency code, transaction [49]..................404
Currency code, Cardholder billing [51]...........404
Account identification 1 [102]...................0525029728001
Account identification 2 [103]...................0525029728002
Reserved for private use [123]...................Y123
Reserved for private use [124]...................40412000
Reserved for private use [125]...................BANK3
================================================================================================
2017-06-27 15:05:03 - info: Writing to queue ::ffff:10.137.160.59:52666 [0]
2017-06-27 15:05:03 - info: New queue item 1
2017-06-27 15:05:03 - info: Processing queue [pending 1 / total 1]
2017-06-27 15:05:03 - verbose: Queue keys dump: 1
2017-06-27 15:05:03 - info: Upstreaming data for ::ffff:10.137.160.59:52666
2017-06-27 15:05:03 - verbose: [02561200F67005C188C0A0000000000006000038101140463000400201000000050100000000050100201727061049046100000010490420172706104904BANK3.......200151059990694040005BANK33E5BD7BFB48BMOB00002000000000105817404404130525029728001130525029728002004Y12300840412000005BANK3.]
2017-06-27 15:05:03 - verbose: [30 32 35 36 31 32 30 30 46 36 37 30 30 35 43 31 38 38 43 30 41 30 30 30 30 30 30 30 30 30 30 30 30 36 30 30 30 30 33 38 31 30 31 31 34 30 34 36 33 30 30 30 34 30 30 32 30 31 30 30 30 30 30 30 30 35 30 31 30 30 30 30 30 30 30 30 30 35 30 31 30 30 32 30 31 37 32 37 30 36 31 30 34 39 30 34 36 31 30 30 30 30 30 30 31 30 34 39 30 34 32 30 31 37 32 37 30 36 31 30 34 39 30 34 42 41 4e 4b 33 20 20 20 20 20 20 20 32 30 30 31 35 31 30 35 39 39 39 30 36 39 34 30 34 30 30 30 35 42 41 4e 4b 33 33 45 35 42 44 37 42 46 42 34 38 42 4d 4f 42 30 30 30 30 32 30 30 30 30 30 30 30 30 30 31 30 35 38 31 37 34 30 34 34 30 34 31 33 30 35 32 35 30 32 39 37 32 38 30 30 31 31 33 30 35 32 35 30 32 39 37 32 38 30 30 32 30 30 34 59 31 32 33 30 30 38 34 30 34 31 32 30 30 30 30 30 35 42 41 4e 4b 33 0a]
2017-06-27 15:05:03 - info: Got data from ISO-host (235b)
2017-06-27 15:05:03 - verbose: [02311210F23005418AE0800000000000040000001011404630004002010000000501002017270610490410490420172706104904BANK3.......20059990694040006BANK633E5BD7BFB48B093MOB000020000000001058170525029728001...........................404130525029728001]
2017-06-27 15:05:03 - verbose: [30 32 33 31 31 32 31 30 46 32 33 30 30 35 34 31 38 41 45 30 38 30 30 30 30 30 30 30 30 30 30 30 30 34 30 30 30 30 30 30 31 30 31 31 34 30 34 36 33 30 30 30 34 30 30 32 30 31 30 30 30 30 30 30 30 35 30 31 30 30 32 30 31 37 32 37 30 36 31 30 34 39 30 34 31 30 34 39 30 34 32 30 31 37 32 37 30 36 31 30 34 39 30 34 42 41 4e 4b 33 20 20 20 20 20 20 20 32 30 30 35 39 39 39 30 36 39 34 30 34 30 30 30 36 42 41 4e 4b 36 33 33 45 35 42 44 37 42 46 42 34 38 42 30 39 33 4d 4f 42 30 30 30 30 32 30 30 30 30 30 30 30 30 30 31 30 35 38 31 37 30 35 32 35 30 32 39 37 32 38 30 30 31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 34 30 34 31 33 30 35 32 35 30 32 39 37 32 38 30 30 31]
2017-06-27 15:05:03 - info: Upstream error: ISO host sent data with no client connected! Ignoring...
ISO host says
================================================================================================
[ <faulty>]
Message Type Indicator [0].......................1210
Bitmap [1].......................................F23005418AE080000000000004000000
Primary Account Number [2].......................1140463000
Processing Code [3]..............................400201
Amount, Transaction [4]..........................50100
Transmission Date and Time [7]...................20172706104904
System Trace Audit Number [11]...................104904
Time, Local Transaction [12].....................20172706104904
Pos Entry Mode [22]..............................BANK3
Function Code [24]...............................200
Card acceptor business code [26].................5999
Acquiring Institution Ident Code [32]............940400
Forwarding institution identification code [33]..BANK63
Retrieval Reference Number [37]..................3E5BD7BFB48B
Response code [39]...............................93
Card Acceptor Terminal Identification [41].......MOB00002
Merchant Id [42].................................000000000105817
Card acceptor name/location [43].................25029
Currency code, transaction [49]..................728
Account identification 1 [102]...................
================================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment