Skip to content

feat: support full MIR BIN range 2200–2204#183

Open
S3os wants to merge 1 commit intocaseyryan:masterfrom
S3os:feat/mir-bin-codes-2200-2204
Open

feat: support full MIR BIN range 2200–2204#183
S3os wants to merge 1 commit intocaseyryan:masterfrom
S3os:feat/mir-bin-codes-2200-2204

Conversation

@S3os
Copy link
Copy Markdown

@S3os S3os commented Apr 13, 2026

Added missing MIR BIN codes 2201, 2202, and 2203 to the card system data.

This completes support for the full MIR BIN range 2200-2204.

Previously, some valid MIR card numbers were not recognized correctly due to incomplete BIN coverage.

Source

According to official MIR documentation, the first 4 digits of a card number must be in the range 2200-2204 (see p.11):
https://cdn.bspb.ru/Rukovodstvo_dlya_sotrudnikov_TSP_PS_MIR_04a412b7b2.pdf

Tests

Added tests covering MIR BINs 2200-2204, including:

  • correct system detection
  • validation
  • formatting behavior

Result

MIR cards within the full BIN range are now correctly recognized, validated, and formatted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant