Skip to main content

Bug Tracker

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)
  • ValidationCCT_Enhancement.zip (30.6 KB) - added by DumpsterDoggy November 22, 2008 07:29PM UTC.

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

Change History (4)

Changed November 22, 2008 08:05PM UTC by DumpsterDogg comment:1

Replying to [ticket:3635 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.

Changed November 25, 2008 11:40AM UTC by flesler comment:2

cc: → DumpsterDoggy
owner: → joern

Changed June 10, 2009 10:06AM UTC by joern comment:3

summary: Enhancement to Jörn's Validation Plugin[validate] Improved credit card validation

Changed June 10, 2009 11:39AM UTC by joern comment:4

resolution: → fixed
status: newclosed

Implemented in r6384 in additionalMethods.js. Heavily refactored the tests, please take a look at those.