View Full Version : Credit Card with CVV2

10-01-2010, 05:10 PM
The purpose of this addition to the contibution is to make it as easy in osCommerce 2 to select which credit cards are accepted by the store as it is in osCommerce 3. This contribution will work with any payment module that uses the osCommerce cc_validation class to prevent a credit card type that is not accepted from being used by the customer. It also displays which credit cards are accepted by the store on the payment page and in an info box.

The cc_validation class now returns a text error message variable as well as a negative return number if an error was found. This message is now used by the credit card module in lieu of its own error messages for every possible error code returned by cc_validation. The errmsg variable will be null if no errors were found. If $test = new cc_validation(); then $test->errmsg will contain the error message, if any, once the validation function has been called.

Note that you will need to make the new images/credit_cards/ folder writable if you plan to use the incuded credit card editing utility to change the logo image for a credit card or if you plan to delete a credit card with a logo image file. In the credit card editing utility you can change whether a card is accepted or not by clicking its 'yes' or 'no' text in the accepted column of the card list without having to actually select and edit the card.

More... (http://addons.oscommerce.com/info/2954)