-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WW-3952: Credit card validator #130
Conversation
This is ready for review |
I hope the regex is stable 😉 |
What do you mean by that? I have used this http://www.regular-expressions.info/creditcard.html |
How often do credit card companies change their number-patterns in a way that the regex needs to be updated? 'guess it is rare enough. |
Good question... I have used those random card numbers in tests and looks ok (but we will see) https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm |
If patterns change users have another reason to upgrade to latest struts 😆 |
Last time I did some credit card validation, I needed to use a java script version as the payment process obscured the field names by not having the "name" attribute (so it was not obvious when these were sent over https) and I was unable to do server side validation. |
Implements a credit card validator
WW-3952