msg_build_message
Validate an ISO 8583 message field dictionary to check MTI validity, missing mandatory fields, value length violations, and reject real PANs for safety.
Instructions
Validate an ISO 8583 message field dictionary. Checks MTI validity, missing mandatory fields, value length violations, and potential real PANs (detected via Luhn algorithm — rejected for safety). Only test PANs (4111111111111111 etc.) are accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Dict mapping field number strings to values. Field "0" must be the MTI. Example: {"0": "0200", "2": "4111111111111111", "3": "000000"} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||