Issue Details (XML | Word | Printable)

Key: HV-10
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Gavin King
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Hibernate Validator

@CreditCardNumber for Hibernate Validator

Created: 18/Dec/06 06:08 AM   Updated: 20/Jul/09 09:43 AM   Resolved: 20/Dec/06 04:09 PM
Return to search
Component/s: validators
Affects Version/s: None
Fix Version/s: 3.0.0.ga

Time Tracking:
Not Specified

Participants: Alexis Pigeon, Davide Baroncelli, Emmanuel Bernard, Gavin King, Guilherme de Azevedo Silveira, Josh Moore and Max Rydahl Andersen


 Description  « Hide

I just dicovered the existence of the Luhn algorithm Very cool.

http://en.wikipedia.org/wiki/Luhn_algorithm

Here is a Java impl:

http://www.darkcanyongroup.com/code/luhn_algorithm.txt

We should have a built-in validator for this.



Emmanuel Bernard added a comment - 20/Dec/06 04:09 PM

need translation


Emmanuel Bernard added a comment - 20/Dec/06 04:13 PM

invalid credit card number


Guilherme de Azevedo Silveira added a comment - 20/Dec/06 07:04 PM

brazilian portuguese (pt-br):
número inválido de cartão de crédito


Max Rydahl Andersen added a comment - 21/Dec/06 12:36 AM

Danish/DK:
ukorrekt kreditkort nummer


Josh Moore added a comment - 21/Dec/06 01:48 AM

de-DE:
ungültige Kreditkartennummer


Davide Baroncelli added a comment - 21/Dec/06 03:59 PM

it-IT: "numero di carta di credito invalido"


Alexis Pigeon added a comment - 26/Mar/07 06:48 AM

es-ES
número de tarjeta de crédito inválido