Cardutil is a python package for working with payment card systems including command line tools for working with Mastercard IPM files.
ISO8583 message parsing
Mastercard IPM file reader/writer/encoder
Check digit calculator
Encrypted pin block generator
Visa PVV calculator
Install and update using pip:
pip install -U cardutil
The python hexdump library is embedded in this package. Many thank to Anatoly Techtonik <firstname.lastname@example.org> This library is a life saver for debugging issues with binary data. Available at Pypi:hexdump.
The iso8583 module in cardutil was inspired by the work of Igor V. Custodio from his original ISO8583 parser. Available at Pypi:ISO8583-Module.
Mastercard is a registered trademark of Mastercard International Incorporated.