Results 1 to 3 of 3

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

      
  1. #1
    New Member
    Join Date
    Jun 2005
    Posts
    11
    Rep Power
    0


    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

  2. #2
    New Member
    Join Date
    Jun 2005
    Posts
    11
    Rep Power
    0


    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?

  3. #3
    New Member
    Join Date
    Jun 2005
    Posts
    11
    Rep Power
    0


    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.

Similar Threads

  1. cc_validation.php errors
    By kelly34 in forum osCmax v2 Installation issues
    Replies: 6
    Last Post: 12-10-2005, 12:53 PM
  2. Credit Card Acceptance in cc_validation class
    By NickW in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-09-2004, 02:26 AM
  3. take cc_validation out of cc.php
    By meme in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-18-2003, 01:49 AM
  4. cc_validation.php - Please, urgent help needed!
    By dos in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 02-18-2003, 03:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •