This is a discussion on cc_validation.php Error within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; I'm testing a site: http://host82.hrwebservices.net/~talktot/shop To test go to the "PSYCHOLOGY " section its the only one with complete product ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I'm testing a site: http://host82.hrwebservices.net/~talktot/shop To test go to the "PSYCHOLOGY " section its the only one with complete product set up. Products are downloadable MP3s. ISSUE: payment module = 2CheckOut (test mode) When ordering product(s) after entering the credit card info on checkout_payment.php and clicking continue to checkout_confirmation.php an error comes up: Warning: Missing argument 4 for validate() in /home/talktot/public_html/shop/includes/classes/cc_validation.php on line 16 Warning: Missing argument 5 for validate() in /home/talktot/public_html/shop/includes/classes/cc_validation.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at /home/talktot/public_html/shop/includes/classes/cc_validation.php:16) in /home/talktot/public_html/shop/includes/functions/general.php on line 29 (All fields were filled in the form including 3 digit Check Number) The above error is thrown during a routine check out. Interesting side note - I have set up a wholesale product (its Barbara DeAngelis "How Did I Get Here") with the price of $0.00 for customer group "Member" i.e. Wholesale Below is a "Member" test account login: name:qwerty@test.com password:testing When a Member purchases a product at the wholesale price of $0.00 the order goes through without an error. Can this be fixed? server specs: PHP 4.3.8 W/ Zend Optimizer MySQL 4.0.22 |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| As I hack my way through this, I can only hope I do more good than damage! I edited line 104 in /catalog/modules/payment/pm2checkout.php FROM THIS: $result = $cc_validation->validate($HTTP_POST_VARS['pm_2checkout_cc_number'], $HTTP_POST_VARS['pm_2checkout_cc_expires_month'], $HTTP_POST_VARS['pm_2checkout_cc_expires_year']); TO THIS: $result = $cc_validation->validate($HTTP_POST_VARS['pm_2checkout_cc_number'], $HTTP_POST_VARS['pm_2checkout_cc_expires_month'], $HTTP_POST_VARS['pm_2checkout_cc_expires_year'], $HTTP_POST_VARS['pm_2checkout_cc_cvv']); So the post will pass the CVV Now that gets rid of the missing argument 4 error below: Warning: Missing argument 4 for validate() in /home/talktot/public_html/shop/includes/classes/cc_validation.php on line 16 But the missing argument 5 is refering to the credit card type in cc_validation.php on line 16: function validate($number, $expiry_m, $expiry_y, $cvv, $cr_card_type) { The credit card type is not passed in the post (as far as I can tell) it looks like it is parsed in the cc_validation.php script Does anyone have osCMAX v2 working with 2CheckOut? |
|
#3
| |||
| |||
| Forget the help request for now. I moved my database tables to another osCommerce installation and now the oscMAX installation is completely hosed. The lesson I learned is NEVER attempt to use BETA versions for production web site, my bad. |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cc_validation.php errors | kelly34 | osCMax v2 Installation issues | 6 | 12-10-2005 12:53 PM |
| Credit Card Acceptance in cc_validation class | NickW | osCMax v1.7 Discussion | 1 | 08-09-2004 02:26 AM |
| take cc_validation out of cc.php | meme | osCommerce 2.2 Modification Help | 1 | 03-18-2003 01:49 AM |
| cc_validation.php - Please, urgent help needed! | dos | osCommerce 2.2 Modification Help | 0 | 02-18-2003 03:33 PM |