osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

cc_validation.php Error

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-29-2005, 02:16 PM
New Member
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tbone
Default cc_validation.php Error

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 07-29-2005, 05:38 PM
New Member
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tbone
Default

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-01-2005, 07:33 AM
New Member
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tbone
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax