edkiefer Posted August 10, 2005 Share Posted August 10, 2005 I just installed paypal ipn and when I click on the continue button I get an error page (The page cannot be displayed). The URL in the browser is: http://checkout_process.php/?osCsid=38ad43...bb47d669f25ebe7 Am I supposed to configure something in paypal_ipn.php? Quote Link to comment Share on other sites More sharing options...
Llamma123 Posted August 10, 2005 Share Posted August 10, 2005 First off I'm a relative novice when it comes to OSC and pretty dumb when it comes to IPN so I welcom any one to jump in here if I am giving bad advice. The URL should be http://yoursite.com/catalog/checkout_process.php (note that the ?osCsid=351adsf321asdf321asdf is a session identifyer and something that should never be hard coded as it changes with each session) I think you could jam "http://yoursite.com/catalog/checkout_process.php" into the paypal redirect feature and see sucess but it sounds like that would be circumventing the proper process and you would loose out on some data. Did you enable PayPal IPN in your paypal account under Profile/Selling Preferences/Instant Payment Notification Preferences? or did you enable auto return under Profile/Selling Preferences/Website Payment Preferences? I think you will need to give PayPal your website URL (like "http://yoursite.com/catalog/checkout_process.php") in one or the other place so it knows where to go after a sucessful payment has been received. It is possible that you need to update a config file to go allong with IPN to pass your URL to PayPal... can you post a link to the IPN you downloaded and installed? It does NOT look to me like you should edit the following file. /catalog/includes/languages/english/modules/payment/paypal_ipn.php Is there another paypal_ipn.php you were referring to? Quote Link to comment Share on other sites More sharing options...
edkiefer Posted August 15, 2005 Author Share Posted August 15, 2005 (edited) First off I'm a relative novice when it comes to OSC and pretty dumb when it comes to IPN so I welcom any one to jump in here if I am giving bad advice. The URL should be http://yoursite.com/catalog/checkout_process.php (note that the ?osCsid=351adsf321asdf321asdf is a session identifyer and something that should never be hard coded as it changes with each session) I think you could jam "http://yoursite.com/catalog/checkout_process.php"?'>http://yoursite.com/catalog/checkout_process.php"? into the paypal redirect feature and see sucess but it sounds like that would be circumventing the proper process and you would loose out on some data. Did you enable PayPal IPN in your paypal account under Profile/Selling Preferences/Instant Payment Notification Preferences?? or did you enable auto return under Profile/Selling Preferences/Website Payment Preferences?? I think you will need to give PayPal your website URL (like "http://yoursite.com/catalog/checkout_process.php") in one or the other place so it knows where to go after a sucessful payment has been received. It is possible that you need to update a config file to go allong with IPN to pass your URL to PayPal... can you post a link to the IPN you downloaded and installed?? It does NOT look to me like you should edit the following file. /catalog/includes/languages/english/modules/payment/paypal_ipn.php Is there another paypal_ipn.php you were referring to? <{POST_SNAPBACK}> Did you enable PayPal IPN in your paypal account under Profile/Selling Preferences/Instant Payment Notification Preferences? or did you enable auto return under Profile/Selling Preferences/Website Payment Preferences? I think you will need to give PayPal your website URL (like "http://yoursite.com/catalog/checkout_process.php") in one or the other place so it knows where to go after a sucessful payment has been received. Yes I have tried a number of different things. 1. Tried enabling PayPal IPN with this IPN URL: http://cpanel1.mapledata.net/~cssplate/cat...out_process.php 2. Tried enabling auto return with this URL: http://cpanel1.mapledata.net/~cssplate/cat...out_process.php 3. Tried enabling both at the same time and separatly. I get the same results with all. This URL is in my browser: http://checkout_process.php/?osCsid=38ad43...bb47d669f25ebe7 Edited August 15, 2005 by edkiefer Quote Link to comment Share on other sites More sharing options...
kewler Posted August 17, 2005 Share Posted August 17, 2005 (edited) I did all that you did (without knowing - and then reset it all) Now I get this far: http://mydomain.com/catalog/checkout_proce...urn+To+Merchant which gives an error Cannot redeclare class order_total in /mysiteroot/catalog/includes/classes/order_total.php line 14 WE ARE GETTING FURTHER Here is my configure.php define('HTTP_SERVER', 'http://thermalband.com/kewler/catalog'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://ssl.perfora.net/mydomain.com/kewler/catalog'); // eg, https://localhost - should not be empty for productive servers // define('HTTPS_SERVER', ''); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'mydomain.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_PRODUCT_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_MODULES', DIR_WS_MODULES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/homepages/40/d120432229/htdocs/dsc0372343751/kewler/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'db199.perfora.net'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'ssssssssssssss'); define('DB_SERVER_PASSWORD', 'sssss'); define('DB_DATABASE', 'sssssssss'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Only problem is that I can't login to my account when SSL is enabled, so it has to be set to false while I research what is wrong - or maybe its above -----------------HOPE this helps!-------------------Kevin Did you enable PayPal IPN in your paypal account under Profile/Selling Preferences/Instant Payment Notification Preferences?? or did you enable auto return under Profile/Selling Preferences/Website Payment Preferences?? I think you will need to give PayPal your website URL (like "http://yoursite.com/catalog/checkout_process.php") in one or the other place so it knows where to go after a sucessful payment has been received. Yes I have tried a number of different things. 1. Tried enabling PayPal IPN with this IPN URL: http://cpanel1.mapledata.net/~cssplate/cat...out_process.php 2. Tried enabling auto return with this URL: http://cpanel1.mapledata.net/~cssplate/cat...out_process.php 3. Tried enabling both at the same time and separatly. I get the same results with all. This URL is in my browser: http://checkout_process.php/?osCsid=38ad43...bb47d669f25ebe7 <{POST_SNAPBACK}> Edited August 17, 2005 by kewler Quote Link to comment Share on other sites More sharing options...
kewler Posted August 17, 2005 Share Posted August 17, 2005 Note that I would login under ssl=false and then switch it to true and refresh the screen and all is good. I process an order through the sandbox and return with the "Return to Merchant" button to the http://mydomain.com/catalog/checkout_proce...urn+To+Merchant screen with the error Cannot redeclare class order_total in /mysiteroot/catalog/includes/classes/order_total.php line 14 I did all that you did (without knowing - and then reset it all) Now I get this far: http://mydomain.com/catalog/checkout_proce...urn+To+Merchant which gives an error Cannot redeclare class order_total in /mysiteroot/catalog/includes/classes/order_total.php line 14 WE ARE GETTING FURTHER Here is my configure.php define('HTTP_SERVER', 'http://thermalband.com/kewler/catalog'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://ssl.perfora.net/mydomain.com/kewler/catalog'); // eg, https://localhost - should not be empty for productive servers // define('HTTPS_SERVER', ''); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'mydomain.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_PRODUCT_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_MODULES', DIR_WS_MODULES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/homepages/40/d120432229/htdocs/dsc0372343751/kewler/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'db199.perfora.net'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'ssssssssssssss'); define('DB_SERVER_PASSWORD', 'sssss'); define('DB_DATABASE', 'sssssssss'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Only problem is that I can't login to my account when SSL is enabled, so it has to be set to false while I research what is wrong - or maybe its above -----------------HOPE this helps!-------------------Kevin <{POST_SNAPBACK}> Quote Link to comment Share on other sites More sharing options...
kewler Posted August 19, 2005 Share Posted August 19, 2005 I did all of the manual edits using the payal 3.5 contribution There are 2 different series - on from the developers and a better one - as I did not get anything but flawless opertion with it. -Kevin I did all that you did (without knowing - and then reset it all) Now I get this far: http://mydomain.com/catalog/checkout_proce...urn+To+Merchant which gives an error Cannot redeclare class order_total in /mysiteroot/catalog/includes/classes/order_total.php line 14 WE ARE GETTING FURTHER Here is my configure.php define('HTTP_SERVER', 'http://thermalband.com/kewler/catalog'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://ssl.perfora.net/mydomain.com/kewler/catalog'); // eg, https://localhost - should not be empty for productive servers // define('HTTPS_SERVER', ''); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'mydomain.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_PRODUCT_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_MODULES', DIR_WS_MODULES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/homepages/40/d120432229/htdocs/dsc0372343751/kewler/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'db199.perfora.net'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'ssssssssssssss'); define('DB_SERVER_PASSWORD', 'sssss'); define('DB_DATABASE', 'sssssssss'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Only problem is that I can't login to my account when SSL is enabled, so it has to be set to false while I research what is wrong - or maybe its above -----------------HOPE this helps!-------------------Kevin <{POST_SNAPBACK}> Quote Link to comment Share on other sites More sharing options...
edkiefer Posted August 19, 2005 Author Share Posted August 19, 2005 I did all of the manual edits using the payal 3.5 contribution There are 2 different series - on from the developers and a better one - as I did not get anything but flawless opertion with it. -Kevin <{POST_SNAPBACK}> can you provide a link to this contribution? I could not find it. Quote Link to comment Share on other sites More sharing options...
tonymazz Posted September 2, 2005 Share Posted September 2, 2005 I am having the same issue. I get this error: Fatal error: Cannot redeclare class order_total in catalog/includes/classes/order_total.php on line 14 Have you had any luck? Quote Tony Mazz Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.