Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#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)

ValidationCCT_Enhancement.zip (30.6 KB) - added by DumpsterDoggy 11 years ago.
Modified jquery.validate.js and test files zipped up.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by DumpsterDoggy

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

comment:1 in reply to:  description Changed 11 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.

comment:2 Changed 11 years ago by flesler

Cc: DumpsterDoggy added
Owner: set to joern

comment:3 Changed 11 years ago by joern

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

comment:4 Changed 11 years ago by joern

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.