Jpos iso8583 unpacking the message with the a leading zero

133 views Asked by At

I am new to this ISO8583 message, and working on processing this message. I have received the following message, where field-11 is a numeric value with 9 digits size.

11007E2466490C61A43016353331313938303034303030303136340010000000000001000000000001000000000001002022120110220100005995402607599900323230......

Since, the field has 9 Numeric digits (odd-numbered) the messgae is added with a leading zero.

I am not able to parse this with the following config.

<isofield
        id="11"
        length="9"
        name="TRANSACTION IDENTIFICATION NUMBER"
        pad="true"
        class="org.jpos.iso.IFA_NUMERIC"/>
        

The expected value is 0000599540, but the actual value I am getting is 000059954. ( Ignores the last 0 as it has 10 digits in the original message)

Any suggestion, on what is the config class to use to achieve this?

0

There are 0 answers