Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

angi

Archived
  • Posts

    27
  • Joined

  • Last visited

Profile Information

  • Real Name
    angi

angi's Achievements

  1. I have installed my echo payment module and get a "fatal error on line 13 of echo_cc" when i go to my admin section. I have pasted some of it below. Any help with this is appreciated. Angi >_< <?php /////////////////////////////////////////////////////////// // echo_cc.php // // v1.7 - last edited 06/02/03 // // // // 06-02-2003 - uncommented var "cnp_security = " line // // due to JavaScript error without it // // // // Released under the GNU General Public License // /////////////////////////////////////////////////////////// class echo_cc { var $code, $title, $description, $enabled; // class constructor function echo_cc() { $this->code = 'echo_cc'; $this->title = MODULE_PAYMENT_ECHO_CC_TEXT_TITLE; $this->description = MODULE_PAYMENT_ECHO_CC_TEXT_DESCRIPTION; $this->enabled = ((MODULE_PAYMENT_ECHO_CC_STATUS == 'True') ? true : false); } // class methods function javascript_validation() { $js = ' if (payment_value == "' . $this->code . '") {' . "\n" . ' var cc_owner = document.checkout_payment.cc_owner.value;' . "\n" . ' var cc_number = document.checkout_payment.cc_number.value;' . "\n" . ' var cnp_security = document.checkout_payment.cnp_security.value;' . "\n" . ' if (cc_owner == "" || cc_owner.length < ' . CC_OWNER_MIN_LENGTH . ') {' . "\n" . ' error_message = error_message + "' . MODULE_PAYMENT_ECHO_CC_TEXT_JS_CC_OWNER . '";' . "\n" . ' error = 1;' . "\n" . ' }' . "\n" . ' if (cc_number == "" || cc_number.length < ' . CC_NUMBER_MIN_LENGTH . ') {' . "\n" . ' error_message = error_message + "' . MODULE_PAYMENT_ECHO_CC_TEXT_JS_CC_NUMBER . '";' . "\n" . ' error = 1;' . "\n" . ' }' . "\n" . ' if (!(document.checkout_payment.no_cnp_security.checked)) { ' . "\n" . ' if (cnp_security == "") {' . "\n" . ' error_message = error_message + "' . MODULE_PAYMENT_ECHO_CC_TEXT_JS_SECURITY .'";' . "\n" . ' error = 1;' . "\n" . ' }' . "\n" . ' }' . "\n" . ' }' . "\n"; return $js; } function selection() { global $order; mt_srand((double) microtime() * 1000000); for ($i=1; $i<13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); } $today = getdate(); for ($i=$today['year']; $i < $today['year']+10; $i++) { $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i))); } $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_ECHO_CC_TEXT_CREDIT_CARD_OWNER, 'field' => tep_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname']) . tep_draw_hidden_field('scounter', mt_rand())), array('title' => MODULE_PAYMENT_ECHO_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('cc_number') . ' ' . MODULE_PAYMENT_ECHO_CC_TEXT_WE_ACCEPT), array('title' => MODULE_PAYMENT_ECHO_CC_TEXT_SECURITY, 'field' => tep_draw_input_field('cnp_security') . ' <a href="java script:void(0);" onclick="popup=window.open(\'' . MODULE_PAYMENT_ECHO_CC_HELP_URL . '\' ,\'popupWindow\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=600,height=550,top=50,left=100\')">' . MODULE_PAYMENT_ECHO_CC_TEXT_HELP . '</a>'), array('title' => MODULE_PAYMENT_ECHO_CC_TEXT_NO_SECURITY, 'field' => tep_draw_checkbox_field('no_cnp_security')), array('title' => MODULE_PAYMENT_ECHO_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('cc_expires_year', $expires_year)))); return $selection; } function pre_confirmation_check() { global $_POST; include(DIR_WS_CLASSES . 'cc_validation.php');
  2. Fatal error: Cannot redeclare class echo_cc in /home/kasali3/public_html/cart/includes/modules/payment/echo_cc.php on line 14
  3. I kept getting fatal error on line 14 of echo_cc. I read the install and the readme next file and did all the changes it tells ya to do. (Actually my hosting company did it too.) They should make it a little simpler for people. Thank you. I have a post around here somewhere where I had copied my exact error as it was on my admin page, I will try to find it and post it back here for you to see.
  4. I wonder if you could help me, everytime I download my echo module(even my hosting company has done it) My admin gets errors on it.
  5. angi

    ECHO Processing

    I also have an echo merchant account, and when i switched hosting companies, they cant seem to upload my echo account. Everything is fine but then in my admin section I get this: Fatal error: Cannot redeclare class echo_cc in /home/kasali3/public_html/includes/modules/payment/echo_cc.php on line 14 any ideas??? Please???
  6. angi

    echo payment

    I got everything from echo all back installed now though on my admin site it says fatal error on line 14 of echo_cc. I will paste some below, I don't know where line 14 would be. Any help is so appreciated. class echo_cc { var $code, $title, $description, $enabled; // class constructor function echo_cc() { $this->code = 'echo_cc'; $this->title = MODULE_PAYMENT_ECHO_CC_TEXT_TITLE; $this->description = MODULE_PAYMENT_ECHO_CC_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_ECHO_CC_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_ECHO_CC_STATUS == 'True') ? true : false); } // class methods function javascript_validation() { $js = ' if (payment_value == "' . $this->code . '") {' . "\n" . ' var cc_owner = document.checkout_payment.cc_owner.value;' . "\n" . ' var cc_number = document.checkout_payment.cc_number.value;' . "\n" . ' var cnp_security = document.checkout_payment.cnp_security.value;' . "\n" . ' if (cc_owner == "" || cc_owner.length < ' . CC_OWNER_MIN_LENGTH . ') {' . "\n" . ' error_message = error_message + "' . MODULE_PAYMENT_ECHO_CC_TEXT_JS_CC_OWNER . '";' . "\n" . ' error = 1;' . "\n" . ' }' . "\n" . ' if (cc_number == "" || cc_number.length < ' . CC_NUMBER_MIN_LENGTH . ') {' . "\n" . ' error_message = error_message + "' . MODULE_PAYMENT_ECHO_CC_TEXT_JS_CC_NUMBER . '";' . "\n" . ' error = 1;' . "\n" . ' }' . "\n" . ' if (!(document.checkout_payment.no_cnp_security.checked)) { ' . "\n" . ' if (cnp_security == "") {' . "\n" . ' error_message = error_message + "' . MODULE_PAYMENT_ECHO_CC_TEXT_JS_SECURITY .'";' . "\n" . ' error = 1;' . "\n" . ' }' . "\n" . ' }' . "\n" . ' }' . "\n"; return $js; } function selection() { global $order; mt_srand((double) microtime() * 1000000); for ($i=1; $i<13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); } $today = getdate();
  7. angi

    echo payment

    My hosting company had kept trying to install my echo merchant account on my site and kept getting errors. I gave them the link to the page that echo-inc said they could use, and it didn't help. This is what they mailed me today. Hi Angi, we have been unable to determine what the problem is. About the only option you have now is to re-install oscommerce on your site, then have someone who is familiar with the echo module install that as well. Sorry we could be of more help I did reinstall the oscommerce site but I want to make sure my echo merchant account will be installed correctly before i upload everything again.
  8. angi

    echo merchant

    I am just wondering if anyone might know how to add the echo module in to the payment modules in the admin. section. My hosting company has done it just like echo showed. But now i get this in my admin section. Fatal error: Cannot redeclare class echo_cc in /home/kasali3/public_html/cart/includes/modules/payment/echo_cc.php on line 14
×
×
  • Create New...