#3635 closed enhancement (fixed)
[validate] Improved credit card validation
Reported by: | DumpsterDoggy | Owned by: | joern |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | plugin | Version: | 1.2.6 |
Keywords: | Validation Plugin Enhancement | Cc: | DumpsterDoggy |
Blocked by: | Blocking: |
Description
This allows credit card types (Visa, MasterCard, etc) to be included in the validation for a form field.
Attachments (1)
Change History (5)
Changed 14 years ago by
Attachment: | ValidationCCT_Enhancement.zip added |
---|
comment:1 Changed 14 years ago by
Replying to DumpsterDoggy:
This allows credit card types (Visa, MasterCard, etc) to be included in the validation for a form field.
To be more descriptive, this will validate that a Card Type matches the allowed values for that card type. For instance, Visa must start with 4 and be 16 digits long, MasterCard must start with 51-54 and be 16 digits long. It will validate for cards "not accepted" basically.
comment:2 Changed 14 years ago by
Cc: | DumpsterDoggy added |
---|---|
Owner: | set to joern |
comment:3 Changed 14 years ago by
Summary: | Enhancement to Jörn's Validation Plugin → [validate] Improved credit card validation |
---|
comment:4 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Implemented in r6384 in additionalMethods.js. Heavily refactored the tests, please take a look at those.
Note: See
TracTickets for help on using
tickets.
Modified jquery.validate.js and test files zipped up.