ronr1999 Posted June 13, 2005 Posted June 13, 2005 I've installed this CVV contrib and now get this Warning when clicking on continue from checkout_payment. I've checked this install twice and everything looks ok (including sql mods). Here's the warnings: Warning: Missing argument 5 for validate() in /home/ron-ri2/public_html/caddybug-usa/catalog/includes/classes/cc_validation.php on line 20 Warning: Cannot modify header information - headers already sent by (output started at /home/ron-ri2/public_html/caddybug-usa/catalog/includes/classes/cc_validation.php:20) in /home/ron-ri2/public_html/caddybug-usa/catalog/includes/functions/general.php on line 29 This is the line of code in cc_validate.php: function validate($number, $expiry_m, $expiry_y, $cvv, $cr_card_type) { $this->cc_number = ereg_replace('[^0-9]', '', $number); I'm not quite where to start looking. If anyone has any ideas, I'd appreciate some help. RonR Quote
ronr1999 Posted June 13, 2005 Author Posted June 13, 2005 // begin cvv contribution $cc_validation = new cc_validation(); $result = $cc_validation->validate($HTTP_POST_VARS['cc_number'], $HTTP_POST_VARS['cc_expires_month'], $HTTP_POST_VARS['cc_expires_year'], $HTTP_POST_VARS['cvvnumber'], $HTTP_POST_VARS['cc_type']); // end cvv contribution I've looked around at this and it appers that "cc_type" is missing from this line of contribution code for cc.php. This is needed in cc_validate.php. But now I get "Credit Card Error" with the red line but on message. Could this missing code that I added now being causing an unknown cc error ? I'm curious how this contribution ever worked ! RonR Quote
ronr1999 Posted June 14, 2005 Author Posted June 14, 2005 Maybe this has something to do with having Authorize.net module installed first and cc.php is using auth.net's cc_validate ? Again, I'm just getting "CREDIT CARD ERROR!" with no error message. REALLY hard to debug with no message. RonR 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.