Custom Validator Example Application
The
credit card payment example with a custom validator.
The input page: index.jsp.
The custom validator class:
CreditCardValidator.java.
The luhnCheck method implements part of the Luhn formula, developed to
verify and generate credit card numbers:
- Can detect wrong or transposed digits
- 4111 1111 1111 1111 passes check
- 4111 1111 1111 1112 fails check