I'm trying to use the cc validation rule but I'm having troubles. Here
is the snippet of the $validate array in my model:

var $validate = array(

    'cc_number' => array(
        'rule' => array('cc', array('visa', 'disc', 'mc', 'jcb'),
false, null),
        'message' => 'The credit card number you supplied was
invalid.'
                                ),
);

American Express is 15 digits, and so is jbc and diners. As there is
no amex option, I'm using jcb instead. When I put in 15 digits the
validation fails. I also tried "diners" instead of "jbc" but that
didn't work either.

I tried just setting it to "all" too but that didn't work.

Any suggestions?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to