What changes
What gets dropped
Fields are dropped, never truncated, and each drop has a reason inresult.dropped:
- Field 52 (PIN data) when the PIN block size differs (8, 16 or 32 bytes). A PIN block can’t be padded to a new size. Re-encrypt it for the target version, for example as a format 4 block with
iso8583sim.security.encrypt_pin_block. - Field 53 (security control information) when its definition differs.
- Fields 64 and 128 (MAC). The MAC covers the whole message, so it must be recomputed after conversion with
ISO8583Builder.build_with_mac. - Values that don’t fit, such as a 60 character field 43 converted to 1987, where field 43 is a fixed 40 characters.
- Fields not defined in the target version.