#1463 closed enhancement (fixed)
credit card validation routines
Reported by: | tk | Owned by: | dylan |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.3 |
Keywords: | validate credit card creditcard | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description
Provides the following functions dojo.validate.creditCard.isValidCreditCard(value,ccType) dojo.validate.creditCard.isValidCreditCardNumber(value,ccType) dojo.validate.creditCard.isValidCvv(value,ccType) dojo.validate.isValidLuhn(value);
isValidCreditCard: compares value and ccType against Luhn alogrithm and isValidCreditCardNumber, true if both are true - false otherwise
isValidCreditCardNumber: matches the value against the predfined rules for that card type (if supplied) otherwise it returns the matching card types (delimited by '|' if more than one matches)
isValidCvv: makes sure that the submitted 'security code' is of the appropriate length and format
isValidLuhn: validates the provided number against the Luhn algorithm (used for more than just credit cards, hence why it is in common.js
-Karl
Attachments (1)
Change History (4)
Changed 14 years ago by
Attachment: | dojo.validate.creditCard.diff added |
---|
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
update to validates common.js and adds new creditCard.js