Skip to content

Add Track1 IC card service code indicators#712

Merged
ar merged 1 commit intomainfrom
track1-ic-card-indicators
May 2, 2026
Merged

Add Track1 IC card service code indicators#712
ar merged 1 commit intomainfrom
track1-ic-card-indicators

Conversation

@ar-agt
Copy link
Copy Markdown
Collaborator

@ar-agt ar-agt commented May 2, 2026

This adds convenience methods to Track1 for identifying IC-card service codes parsed from Track 1 data:

  • isEMV()
  • isICCard()
  • isInternationalICCard()

The existing Track 1 parser and regexp are unchanged. The new methods interpret the already-parsed service code, keeping EMV/IC-card detection as a semantic check rather than a separate Track 1 grammar.

Tests cover:

  • international IC-card service code (2xx)
  • national IC-card service code (6xx)
  • non-IC service code
  • missing service code

Tested with:

./gradlew --no-daemon :jpos:test --tests org.jpos.core.CardTest

@ar ar merged commit 89259a6 into main May 2, 2026
1 check passed
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.

2 participants