Java library for detecting if a card's number is correct or not with an Implementation of Luhn check.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

CCValidate Java Library


- To create card: Card newCard = new Card("Credit card number");
- To check if card is valid: newCard.isValid();
- To check if card passes Luhn : newCard.passesLuhn();
- To echo back card number : newCard.getCardNumber();
- To check if card number is in correct format: newCard.correctFormat();
- To get type of card: newCard.getCardType();