Skip to content
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

Validator support for Credit Card check #114

Closed
damyanpetev opened this issue Jul 18, 2016 · 0 comments
Closed

Validator support for Credit Card check #114

damyanpetev opened this issue Jul 18, 2016 · 0 comments

Comments

@damyanpetev
Copy link
Member

damyanpetev commented Jul 18, 2016

Partially inspired by Data Annotation in MVC, but also seemed reasonable to support such common check.
New option:
creditCard - bool or object with errorMessage, similar to email and other type checks. Inherited.
Description:
Validation is client side and credit card type agnostic - as all of the active issuers can be validated using the Luhn algorithm. Check will match the MVC server side model validation and will be accompanied by a respective option in the Validator Model/Wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants