Interface CardValidator
- All Known Implementing Classes:
CardValidatorImpl
public interface CardValidator
Provides various credit card validation routines. The Card Validation process also discovers useful information about
the card number, such as the card scheme, issuing country and bank.
-
Method Summary
Modifier and TypeMethodDescriptionPerforms the complete suite of card validation, including the luhn check.Returns the card schemes supported by the system.booleanisCardSchemeSupported(CreditCardType cardScheme) Determines if the provided card scheme is supported by the system.booleanPerforms a luhn check on the given credit card number, in order to determine if it is a valid number.
-
Method Details
-
luhnCheck
Performs a luhn check on the given credit card number, in order to determine if it is a valid number. -
checkCard
Performs the complete suite of card validation, including the luhn check. The Card Validation process also discovers useful information about the card number, such as the card scheme, issuing country and bank. This is all returned in the card validation result. -
getSupportedCardSchemes
List<CreditCardType> getSupportedCardSchemes()Returns the card schemes supported by the system. -
isCardSchemeSupported
Determines if the provided card scheme is supported by the system.
-