Modify ↓
Ticket #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 |
| Blocking: | Blocked by: |
Description
This allows credit card types (Visa, MasterCard, etc) to be included in the validation for a form field.
Attachments
Change History
Changed 4 years ago by DumpsterDoggy
-
attachment
ValidationCCT_Enhancement.zip
added
comment:1 in reply to: ↑ description Changed 4 years ago by DumpsterDogg
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Modified jquery.validate.js and test files zipped up.