livingplanet Posted March 3, 2008 Posted March 3, 2008 I've had my store online and working for the past year. I've been using the included Credit Card Module with osCommerce 2.2-MS2. Just this past week I've been getting a credit card error, below: "The credit card number entered is invalid.<br>Please check the number and try again." even when the numbers are right. Has anyone ever had this problem? and how do you fix it? Thanks, Mark Quote
dynamoeffects Posted March 3, 2008 Posted March 3, 2008 Does it happen every time? Have you made any changes to your store recently? Quote Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.
livingplanet Posted March 3, 2008 Author Posted March 3, 2008 (edited) I have not made any changes. I found this in the forum. http://www.oscommerce.com/forums/index.php?showtopic=200146 I tried adding this line of code return 1; underneath this line of code function validate($number, $expiry_m, $expiry_y) { as suggested in that thread in my catalog\includes\classes\cc_validation.php file but then I get this error: Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /www/home/livingplanet.ca/htdocs/shop/catalog/includes/modules/payment/cc.php on line 137 I open up cc.php and look to line 137 (below): 'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)), Anyone have any ideas? Edited March 3, 2008 by livingplanet Quote
hnorfleet Posted March 5, 2008 Posted March 5, 2008 I have just had a long time client report this same issue. Any insight would be greatly appreciated! Quote
livingplanet Posted March 6, 2008 Author Posted March 6, 2008 I've decided to take the option of paying by Credit Card down and leave only paypal up until this error is fixed. Quote
livingplanet Posted March 14, 2008 Author Posted March 14, 2008 Anyone have any solution to this problem? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.