Contents
ISO/IEC 7813
ISO/IEC 7813 is an international standard codified by the International Organization for Standardization and International Electrotechnical Commission that defines properties of financial transaction cards, such as ATM or credit cards.
Scope
The standard defines:
Physical characteristics
ISO/IEC 7813 specifies the following physical characteristics of the card, mostly by reference to other standards:
Magnetic tracks
Track 1
Track 1 can store up to 79 alphanumeric characters. ISO 7813 specifies the following structure for track 1 data:
Examples
Track 2
Track 2 can store up to 40 numeric or special characters; it uses a lower density magnetic encoding than Track 1 but a more compact character encoding. ISO 7813 specifies the following structure for track 2 data:
Track 3
Track 3 uses the same density as track 1 but has the same character encoding as track 2, allowing it to store 107 numeric characters. It is virtually unused by the major worldwide networks and often isn't present on payment cards. A notable exception to this is Germany, where Track 3 content was used nationally as the primary source of authorization and clearing information for debit card processing prior to the adoption of the "SECCOS" ICC standards. Track 3 is standardized nationally to contain both the cardholder's bank account number and branch sort code (BLZ).
Programming
Parsing Track 1 and Track 2 can be done with Regular Expressions.
Track 1
This Regex will capture all of the important fields into the following groups:
Track 2
Implementations
This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.
Wikipedia® is a registered trademark of the
Wikimedia Foundation, Inc.
Bliptext is not
affiliated with or endorsed by Wikipedia or the
Wikimedia Foundation.