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.
Permalink
Failed to load latest commit information.
.settings
src/main
.classpath
.gitignore
.project
README.md

README.md

CCValidate Java Library

Usage:

- 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();