Skip to content

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

Merged
caseyryan merged 1 commit into
caseyryan:masterfrom
S3os:feat/mir-bin-codes-2200-2204
May 17, 2026
Merged

feat: support full MIR BIN range 2200–2204#183
caseyryan merged 1 commit into
caseyryan: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.

@lazysteff
Copy link
Copy Markdown

@caseyryan, this contribution looks useful and seems to have gone unnoticed. Could you please take a look and review it when you have a chance?

@caseyryan caseyryan merged commit e5a0130 into caseyryan:master May 17, 2026
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.

3 participants