Side navigation
#3635 closed enhancement (fixed)
Opened November 22, 2008 07:25PM UTC
Closed June 10, 2009 11:39AM UTC
Last modified March 14, 2012 11:43PM UTC
[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 (4)
Changed November 22, 2008 08:05PM UTC by comment:1
Changed November 25, 2008 11:40AM UTC by comment:2
cc: | → DumpsterDoggy |
---|---|
owner: | → joern |
Changed June 10, 2009 10:06AM UTC by comment:3
summary: | Enhancement to Jörn's Validation Plugin → [validate] Improved credit card validation |
---|
Changed June 10, 2009 11:39AM UTC by comment:4
resolution: | → fixed |
---|---|
status: | new → closed |
Implemented in r6384 in additionalMethods.js. Heavily refactored the tests, please take a look at those.
Replying to [ticket:3635 DumpsterDoggy]:
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.