Assignment of values to parameters in ISO 8583 with python

1

I am new to the creation of sockets and frames for virtual card transactions or reloads, I am currently working with python and its iso 8583 library, so I am seeing the need to see how I can assign the parameters to the library correctly , the example is this:

iso.setBit(3, 990000)  # PROCCESING CODE
iso.setBit(11, 123612)  # STAN
iso.setBit(12, 173645)  # TIME
iso.setBit(13, 1515)  # DATE

I initialize a value that by default in my method the first one is the reference code of the iso parameter, and the second one is its value, which in some cases like the PROCESSING CODE and the STAN, I already have it mapped by the type of transaction, but DATE and TIME, I put them randomly, and I would like to know how to define them really, another example:

iso.setBit(41, '29110001')  # TERMINAL ID

I need additionally to it the terminal id which the documentation tells me that I have to define it in ascii, but as I would calculate it, know if it is the ip of the machine or the public ip that I need to send and how to return it to ascii, for please I need your contributions and your support thanks.

    
asked by Omar Hernandez 24.07.2018 в 20:42
source

0 answers