Skip to main content
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
str
required
4-digit MTI string
tuple[bool, str | None]
(is_valid, error_message)

validate_bitmap()

Validate bitmap format and content Parameters
str
required
Hexadecimal bitmap string
tuple[bool, str | None]
(is_valid, error_message)

validate_pan()

Validate Primary Account Number using Luhn algorithm Parameters
str
required
Card number string
bool
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
int
required
Field number to validate
str
required
Field value
ISO8583Version
required
ISO8583 version
list[str]
List of compatibility errors