Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal IPN V3.1.5


Guest

Recommended Posts

Posted

Hi All,

 

I have recently installed PayPal IPN v3.1.5 and when I try to install via admin payment module, I got this error :

 

Cannot redeclare class paypal in /public_html/includes/modules/payment/paypal.php on line 20 with PHP codes - "class paypal {

var $code, $title, $description, $enabled;" (see below)

 

Some of my source codes:

================================================================================

=

/*

$Id: paypal.php,v 1.1.1.1 2004/09/22 13:45:13 devosc Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

DevosC, Developing open source Code

http://www.devosc.com

 

Copyright © 2003 osCommerce

Copyright © 2004 DevosC.com

 

Released under the GNU General Public License

*/

 

define('FILENAME_PAYPAL_INFO','popup_paypal.php');

define('FILENAME_IPN','ipn.php');

 

class paypal {

var $code, $title, $description, $enabled;

 

// class constructor

function paypal() {

global $order;

$this->code = 'paypal';

$this->codeTitle = 'PayPal';

$this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE;

$this->description = MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION;

$this->sort_order = MODULE_PAYMENT_PAYPAL_SORT_ORDER;

$this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false);

if ((int)MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID > 0) {

$this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID;

 

================================================================================

=

 

I had earlier version of PayPal IPN uninstalled via admin before I installed the version above. Could someone enlight me of what should I do to solve this problem. Its seems to be that the class has been decalred somewhere in the module but I couldn't find it.

 

TQ for your help !

Posted

well in PHP there can not be two classes with same name.

So check the other payment module files that ae there having the same paypal as class.

 

uninstall that module then delete file and it should work.

 

 

Satish Mantri

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...