Example usage for Java org.apache.commons.validator CreditCardValidator fields, constructors, methods, implement or subclass
The text is from its open source code.
int | AMEX Option specifying that American Express cards are allowed. |
int | VISA Option specifying that Visa cards are allowed. |
int | MASTERCARD Option specifying that Mastercard cards are allowed. |
int | DISCOVER Option specifying that Discover cards are allowed. |
CreditCardValidator() Create a new CreditCardValidator with default options. | |
CreditCardValidator(int options) Creates a new CreditCardValidator with the specified options. |
boolean | isValid(String card) Checks if the field is a valid credit card number. |