Giter Site home page Giter Site logo

python-iso8583's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

python-iso8583's Issues

Python 3

Hi,

Any plan to port it to python 3?

ISO 8583 parsing went wrong for my message

I have used your example program to parse my ISO 8583 message.
But I have an issue (exception thrown after field 63 as invalid literal for int() with base 10).

I have captured following debug message ( only copied the important part of debug message here)when I set the ISO message.

This is the array of bits (before) [0, 0, 0, 'X', 'X', 0, 0, 'X', 0, 0, 0, 'X', 'X', 'X', 0, 0, 0, 0, 0, 0, 0, 0, 'X', 0, 0, 'X', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'X', 0, 0, 0, 'X', 'X', 0, 0, 0, 0, 0, 0, 'X', 0, 0, 0, 'X', 0, 'X', 0, 0, 0, 0, 0, 0, 0, 'X', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'X', 'X']

This is the input string <300000000000000100092710262200000010262209270572513139303932373130323632325206711320202020202020202020202020202009785222015300000001014182022000950500000000009C01005F2A0209785F3401009F02060000000001009F03060000000000009F1007060D0A03A020009F1A0208409F260824E62C2AC07110529F2701809F360200FF9F3704817D13EF9F3901079F6604A000C0009F6E0420700000CF010457134929457789172006D21032010013100000001F9A03190927DFDF23020840DFDF270100001030313233343536373839002135134929457789172006D21032010013100000001F5D3B3DB66D1FE2E7>

String = 785222015300000001014182022000950500000000009C01005F2A0209785F3401009F02060000000001009F03060000000000009F1007060D0A03A020009F1A0208409F260824E62C2AC07110529F2701809F360200FF9F3704817D13EF9F3901079F6604A000C0009F6E0420700000CF010457134929457789172006D21032010013100000001F9A03190927DFDF23020840DFDF270100001030313233343536373839002135134929457789172006D21032010013100000001F5D3B3DB66D1FE2E7 offset = 114 bit = 63
Size of the message in LLL = 785
Setting bit 63 value 785222015300000001014182022000950500000000009C01005F2A0209785F3401009F02060000000001009F03060000000000009F1007060D0A03A020009F1A0208409F260824E62C2AC07110529F2701809F360200FF9F3704817D13EF9F3901079F6604A000C0009F6E0420700000CF010457134929457789172006D21032010013100000001F9A03190927DFDF23020840DFDF270100001030313233343536373839002135134929457789172006D21032010013100000001F5D3B3DB66D1FE2E7
String = offset = 902 bit = 127

So please kindly let me know where It went wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.