juks / iso-8583-socket-queue

ISO 8583 gateway
MIT License
194 stars 111 forks source link

Iso8583 packet contains errors. Won't queue! #40

Closed bellaj closed 4 years ago

bellaj commented 4 years ago

Hi While i am testing your project (which an amazing work BTW) i got this error Iso8583 packet contains errors. Won't queue! after trying to send the following iso8583 message (after hex encoding of course)

0200723A4001084180021666666612345678905610000000010010000327110332000981180332032703286011040014000980000000000012123036123456000012345678900000100000028000288

the server recognize most of the fields but it shows

================================================================================================
     Message Type Indicator [0].......................0200
     Bitmap [1].......................................3732334134303031
     Processing Code [3]..............................84180
     Amount, Transaction [4]..........................21666666612
     Amount, Cardholder Billing [6]...................345678905610
     Transmission Date and Time [7]...................0000000100
     Amount, Cardholder Billing Fee [8]...............10000327
     System Trace Audit Number [11]...................110332
     Time, Local Transaction [12].....................000981180332
     Date, Settlement [15]............................327
     Function Code [24]...............................32
     Acquiring Institution Ident Code [32]............01104001400
     Track 2 Data [35]................................800000000
     Approval code [38]...............................000121
     Personal Identification Data [52]................0361234
     Primary MAC Data [64]............................56000012

================================================================================================
Errors:
     No field 22
     No field 25
     No field 41
     No field 42
     No field 49
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I got the same behavior for other hex messages

juks commented 4 years ago

Hi!

This is just specific system-related thing. The obligatory fields are defined here: https://github.com/juks/SocketQueue/blob/653ad6e888ebf6fb90399eaa4e8a216e103cbfda/lib/iso8583/lib/packager/smartVista.js#L24.

bellaj commented 4 years ago

Thanks @juks