org.hibernate.validator.constraints.CreditCardNumber support
HTML5 validation dialect for the Thymeleaf template engine
Brought to you by:
jacksonbeat,
jmiguelsamper
@CreditCardNumber is an Hibernate Validator annotation http://docs.jboss.org/hibernate/validator/5.2/api/org/hibernate/validator/constraints/CreditCardNumber.html
It just implements a modulo algorithm http://en.wikipedia.org/wiki/Luhn_algorithm not a full credit card validation.
In order to be coherent with that we should implement a javascript validation performing the same check.