Calling Validation-cc() from the controller

2010-08-13 Thread Wilhelm
Hi, I am implementing a e-commerce website, in my project for security reasons I am not storing the users credit card details in the database but rather that is being handled by a third party. My question is that I would like to use the cc validation to validate the credit card number before

Re: Calling Validation-cc() from the controller

2010-08-13 Thread euromark
as far as i know the validations can be called statically: Validation::cc() etc On 13 Aug., 09:55, Wilhelm wilhelm.ellm...@gmail.com wrote: Hi, I am implementing a e-commerce website, in my project for security reasons I am not storing the users credit card details in the database but

Re: Calling Validation-cc() from the controller

2010-08-13 Thread Jeremy Burns | Class Outfit
Yes, I already do this. Create /app/models/credit_card.php; ?php class CreditCard extends AppModel { var $name = 'CreditCard'; var $useTable = false; var $validate = array( 'card_number' = array( 'notempty' =

Re: Calling Validation-cc() from the controller

2010-08-13 Thread Louie Miranda
How about validating proper security code? -- Louie Miranda - Email: lmira...@gmail.com - Web: http://www.louiemiranda.com On Fri, Aug 13, 2010 at 4:08 PM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Yes, I already do this. Create /app/models/credit_card.php; ?php

Re: Calling Validation-cc() from the controller

2010-08-13 Thread Jeremy Burns | Class Outfit
I let the card processing company do that - is there a way to do it locally before submitting? I'd be interested if there is a method for that. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 13 Aug 2010, at 09:20, Louie Miranda wrote: How about validating

Re: Calling Validation-cc() from the controller

2010-08-13 Thread Wilhelm
Hi Guys, thanks so much for your feedback it has been greatly helpful. Kind Regards Wilhelm On Aug 13, 10:26 am, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: I let the card processing company do that - is there a way to do it locally before submitting? I'd be interested if

Re: Calling Validation-cc() from the controller

2010-08-13 Thread Wilhelm
With regards to validating the security code, I think if this was possible it would almost defeat the purpose of the security case. I think the best that you could do it check the security code length. From my limited knowledge on credit cards I believe that the standard in the digits long with