Skip to content

Conversation

@tomkp
Copy link
Owner

@tomkp tomkp commented Dec 28, 2025

Summary

  • Add verifyPin() to EmvLike interface and commands.ts
  • Add verify-pin command to CLI with proper error handling
  • Handle success, wrong PIN with remaining attempts, and blocked PIN
  • Validate PIN format (4-12 digits)
  • Add tests for verifyPin command

Usage

emv verify-pin 1234

Test plan

  • All 120 tests pass (4 new tests added)
  • Lint passes
  • Tests cover success, wrong PIN, blocked PIN, and invalid format

Closes #75

- Add verifyPin() to EmvLike interface and commands.ts
- Add verify-pin command to CLI with proper error handling
- Handle success, wrong PIN with remaining attempts, and blocked PIN
- Validate PIN format (4-12 digits)
- Add tests for verifyPin command
@tomkp tomkp merged commit 12e4a70 into master Dec 28, 2025
2 checks passed
@tomkp tomkp deleted the feature/verify-pin-command branch December 28, 2025 21:26
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.

Add verify-pin CLI command

2 participants