iso8583sim.core.validator
ISO8583Validator
Enhanced validator for ISO 8583 messages with network support
validate_field()
Validate field value
validate_message()
Validate complete ISO 8583 message
validate_processing_code()
Validate processing code format
validate_mti()
Validate Message Type Indicator
Parameters
(is_valid, error_message)
validate_bitmap()
Validate bitmap format and content
Parameters
Hexadecimal bitmap string
(is_valid, error_message)
validate_pan()
Validate Primary Account Number using Luhn algorithm
Parameters
True if valid, False otherwise
validate_for_network()
Validate a message as if it were sent on another network.
The message is not changed. Useful to check whether a message built for one
network also meets another network’s required fields and formats.
validate_for_networks()
Validate a message against several networks at once (all networks by default).
verify_mac()
Check the MAC in field 64 or 128 of a raw message. Requires the security extra.
validate_network_compliance()
Validate network-specific requirements
validate_emv_data()
Validate EMV data format (TLV structure)
validate_field_compatibility()
Validate field compatibility with ISO version
Parameters
List of compatibility errors