VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: aeiweb on December 03, 2012, 16:26:29 PM

Title: CC Validation
Post by: aeiweb on December 03, 2012, 16:26:29 PM
Is there any way to add in CC validation in the shopper feilds? We need to make sure its a valid card number going in. It will save us a bunch of time.

Thanks in advance.

Title: Re: CC Validation
Post by: bytelord on December 03, 2012, 21:45:25 PM
This should be done using an SSL and you have to adjust or develop a payment plugin at your needs ... will be the worst case scenario letting your customers enter their CC information inside shopperfields ...  :o
Title: Re: CC Validation
Post by: aeiweb on December 03, 2012, 22:03:37 PM
I have SSL on the whole site, so that should do right? As far as I know that will keep things safe. Since the people at VM for reasons only known to them decided to remove offline CC transactions, this is pretty much my only option. Its very frustrating.

I just need to put something in place that will make sure the CC number put in is a valid CC number, rather than just gibberish. Is that possible?
Title: Re: CC Validation
Post by: bytelord on December 03, 2012, 22:09:04 PM
Hello,

You could try that one i believe. http://extensions.virtuemart.net/extensions-virtuemart-2/offline-credit-card-processing-detail

As i told you is not optimal to place CC number on shopper fields, those data are not encrypted, not safe, instead of using SSL.
Alternative you could write your own plugin (you will need some PHP/Joomla Development knowledge).
Some good examples:

http://stackoverflow.com/questions/174730/what-is-the-best-way-to-validate-a-credit-card-in-php
http://www.sitepoint.com/card-validation-class-php/
http://www.pixelenvision.com/2314/php-credit-card-validation-class-using-mod-10-luhn-more/

But as i told you need some PHP knowledge


Regards
Title: Re: CC Validation
Post by: aeiweb on December 03, 2012, 22:20:56 PM
writing my own PHP isn't really an option fo rme. Can i encrypt the information from the shoppers fields?
Title: Re: CC Validation
Post by: alatak on December 05, 2012, 11:44:36 AM
Hello

QuoteYou could try that one i believe. http://extensions.virtuemart.net/extensions-virtuemart-2/offline-credit-card-processing-detail
This plugin checks the validity of the credit card, and does not allow to save the information when the CC number is not valid