Interface CardValidator
- All Known Implementing Classes:
DefaultCardValidator, IgnoreLuhnCardValidator, NoCardValidator
public interface CardValidator
Validates
Card instances (e.g. checks expiry, Luhn check, BIN ranges).-
Method Summary
-
Method Details
-
validate
Validates the given card.- Parameters:
card- the card to validate- Throws:
InvalidCardException- if the card is invalid
-