pugsport Posted May 12, 2006 Share Posted May 12, 2006 Hi there I am having a little trouble with the osCommerce PayPal IPN Module v1.0 For 2.2MS2 contribution. Everything is going through fine transaction wise but when the paypal payment is complete (using credit card), it come up with a Return to Merchant button, when I click on this, it comes up with "Web site cannot be found" and points to this URL: http://checkout_process.php/?tx=8CL8805891...WXll%252f4%253d Can anyone help? I have set my return URL in PayPal Website Payment Preferences but I guess this module overrides that. Thank you in advance. Steve Mann Quote Link to comment Share on other sites More sharing options...
Guest Posted May 13, 2006 Share Posted May 13, 2006 Hi there I am having a little trouble with the osCommerce PayPal IPN Module v1.0 For 2.2MS2 contribution. Everything is going through fine transaction wise but when the paypal payment is complete (using credit card), it come up with a Return to Merchant button, when I click on this, it comes up with "Web site cannot be found" and points to this URL: http://checkout_process.php/?tx=8CL8805891...WXll%252f4%253d Can anyone help? I have set my return URL in PayPal Website Payment Preferences but I guess this module overrides that. Thank you in advance. Steve Mann Hi Steve No one will ever find this page. You need to have your website included http://yourwebsiteaddress/catalog/checkout_process.php Did you set the correct url at paypal? Quote Link to comment Share on other sites More sharing options...
pugsport Posted May 14, 2006 Author Share Posted May 14, 2006 Hi there Thank you for coming back to me. I'm sorry for not understanding properly but what do you mean by website included? I have set up the Paypal preference to Autoreturn to the following URL: http://www.thetotalbody.co.uk/checkout_process.php Is this not correct? Thank you very much. Steve Hi Steve No one will ever find this page. You need to have your website included http://yourwebsiteaddress/catalog/checkout_process.php Did you set the correct url at paypal? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 14, 2006 Share Posted May 14, 2006 Hi there Thank you for coming back to me. I'm sorry for not understanding properly but what do you mean by website included? I have set up the Paypal preference to Autoreturn to the following URL: http://www.thetotalbody.co.uk/checkout_process.php Is this not correct? Thank you very much. Steve I had a look at your shop. It looks like your shop is installed in the root of your domain, so the address above is basically correct. However, I erred, and the page itself should be checkout_success.php Sorry for that. However, it REALLY should be https not http. It looks like you do not have an ssl certificate. I have heard that the return from paypal requires https to work properly. I thought that WPP was for US shops and US Dollars only? There is a support thread for WPP, so any questions should be posted there. Quote Link to comment Share on other sites More sharing options...
♥Vger Posted May 14, 2006 Share Posted May 14, 2006 This post refers to the osCommerce Pay Pal IPN contribution and not Website Payments Pro. The correct return url is http://www.yourdomain.com/checout_process.php. If you are using the osCommerce Pay Pal IPN contribution do not sign up on the Pay Pal website to their Pay Pal IPN service. Do sign up for their auto-return service (as you have done). You may also want to look in Contributions for one called "Make Pay Pal Post Order Info". Vger Quote Link to comment Share on other sites More sharing options...
Guest Posted May 14, 2006 Share Posted May 14, 2006 This post refers to the osCommerce Pay Pal IPN contribution and not Website Payments Pro. The correct return url is http://www.yourdomain.com/checout_process.php. If you are using the osCommerce Pay Pal IPN contribution do not sign up on the Pay Pal website to their Pay Pal IPN service. Do sign up for their auto-return service (as you have done). You may also want to look in Contributions for one called "Make Pay Pal Post Order Info". Vger My error about wpp, I don't know where that came from. http://www.yourdomain.com/checout_process.php? this is a typo. I use another paypal ipn and use the checkout_success.php as the return. Is this dependent on which ipn you are using, or am I missing something? So why isn't it working? Quote Link to comment Share on other sites More sharing options...
devosc Posted May 14, 2006 Share Posted May 14, 2006 My error about wpp, I don't know where that came from. http://www.yourdomain.com/checout_process.php? this is a typo. I use another paypal ipn and use the checkout_success.php as the return. Is this dependent on which ipn you are using, or am I missing something? So why isn't it working? For PPSCIPN, it is checkout_sucess.php. The problem, in general, is most likely because the store is configured (includes/configure.php etc) with ENABLE_SSL enabled (i.e. true) but HTTPS_SERVER is empty (''), so the return param provided to PayPal is not a fully qualified URL. If the site does not have SSL, then ENABLE_SSL should be false (or atleast specify something for HTTPS_SERVER). Quote "Any fool can know. The point is to understand." -- Albert Einstein Link to comment Share on other sites More sharing options...
pugsport Posted May 14, 2006 Author Share Posted May 14, 2006 Hi there I have done exactly as you all say and it now works!!! Thank you all. It did seem that the issue was the ENABLE_SSL, it was set to TRUE, I changed it to FALSE and it now works a treat. Just need to get my SSL certificate sorted now and then will set it back to TRUE and have a fully sorted ecommerce site. Thanks again. Steve For PPSCIPN, it is checkout_sucess.php. The problem, in general, is most likely because the store is configured (includes/configure.php etc) with ENABLE_SSL enabled (i.e. true) but HTTPS_SERVER is empty (''), so the return param provided to PayPal is not a fully qualified URL. If the site does not have SSL, then ENABLE_SSL should be false (or atleast specify something for HTTPS_SERVER). Quote Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2006 Share Posted May 15, 2006 Ive tried this too, as i am having problems with my customers returning to my site. The problem only occurs when customers pay by credit card (and dont have an account with paypal). Everything ok if they have a paypal account, they get returned to checkout_success.php, remain looged in, and all is good. For none paypal account holders, from what i can make out, i think the checkout_success.php page is being called on return, but session id is lost somewhere, and therefore non-paypal customers get kicked back to index.php as they are no longer logged in on my website. Its important all of my customers return to checkout_success.php once they have completed their transaction, otherwise im pretty sure i will have a lot of complaints! Im tried for well over a week to try and fix, im completely stuck now. Run out of ideas to fix it. As an overview, heres how im set up: PAYPAL SETTINGS: IPN - off Auto Return - on Auto Return URL - http://www.mywebsite.co.uk/checkout_success.php * i dont have an SSL * Payment Data Transfer: Off Encrypted Website Payments - off Contact Tel no: off Includes/configure.php SETTINGS: Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://mywebsite.co.uk'); define('HTTPS_SERVER', ''); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://mywebsite.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_WS_IMAGES', '/catalog/images/'); define('DIR_WS_ICONS', '/catalog/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_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); I dont have SSL at this stage, so Enable_SSL is set to false. Admin side IPN Settings: Enable PayPal Module True E-Mail Address [email protected] Business ID [email protected] Transaction Currency Only GBP Payment Zone --none-- Set Pending Notification Status Pending Set Order Status Paypal Authorised Set On Hold Order Status On Hold Set Canceled Order Status Canceled Synchronize Invoice True Sort order of display. 0 Background Color White Processing logo oscommerce.gif Store logo PayPal Page Style Name website1 Include a note with payment No Shopping Cart Method Itemized Enable PayPal Shipping Address No Digest Key My Website Site Test Mode Off Cart Test On Debug Email Notifications Yes Debug Email Notification Address [email protected] PayPal Domain www.paypal.com Return URL behavior 1 ---------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- As far as i can see, i think everything is ok with regards the settings above. I have a business account set up with paypal, if that makes a difference. Im running PAYPAL_SHOPPING_CART_IPN contribution. Any support at all would be a real help to me, id be very greatful. My store is due live in 3 weeks, ive worked damn hard over the last 4 months to learn how to build it, thanks to reading the forum, contribution notes, etc etc but im stumped with this. Yours kindly, Darren Hi there I have done exactly as you all say and it now works!!! Thank you all. It did seem that the issue was the ENABLE_SSL, it was set to TRUE, I changed it to FALSE and it now works a treat. Just need to get my SSL certificate sorted now and then will set it back to TRUE and have a fully sorted ecommerce site. Thanks again. Steve Quote Link to comment Share on other sites More sharing options...
devosc Posted May 15, 2006 Share Posted May 15, 2006 Ive tried this too, as i am having problems with my customers returning to my site. The problem only occurs when customers pay by credit card (and dont have an account with paypal). Return URL behavior 1 Darren Set it to 2 (Post), there is a problem at PP's end seemedly still not resolved. Quote "Any fool can know. The point is to understand." -- Albert Einstein Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2006 Share Posted May 15, 2006 You're a gentleman Greg. Thank you, it worked! Set it to 2 (Post), there is a problem at PP's end seemedly still not resolved. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2006 Share Posted May 15, 2006 Set it to 2 (Post), there is a problem at PP's end seemedly still not resolved. Hi Greg Does your PayPal IPN contrib http://www.oscommerce.com/community/contri...arch,paypal+ipn have to have the return url set the same way? Quote Link to comment Share on other sites More sharing options...
per4manz Posted May 15, 2006 Share Posted May 15, 2006 Hi Greg Does your PayPal IPN contrib http://www.oscommerce.com/community/contri...arch,paypal+ipn have to have the return url set the same way? I too would like to know as all seemed to work okay in the sandbox, but is not auto-returning when live. I have set Auto_return to ON in the PayPal prefs, but left the returning URL blank per the instructions. I have a very unhappy customer on my hands right now. ANy help would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
devosc Posted May 15, 2006 Share Posted May 15, 2006 Hi Greg Does your PayPal IPN contrib http://www.oscommerce.com/community/contri...arch,paypal+ipn have to have the return url set the same way? Hiya, If I can recall etc, there shouldn't be any need to configure anything over at PayPal in regard to using the Auto-Return, or atmost it just needs to be enabled. PPSCIPN will specify the actual URL location to return to, since a merchant may have more than one store etc.... And there should be no need to enable/configure IPN in the PayPal account profile either. The matter mentioned above in the customer's session being lost when returning to the site is because PayPal are/were not transposing the GET params of the form action into POST params (hidden fields) when returning the customer back to the store via the GET method when processing (non-paypal-member) CC payments (or something like that etc). Quote "Any fool can know. The point is to understand." -- Albert Einstein Link to comment Share on other sites More sharing options...
♥Vger Posted May 16, 2006 Share Posted May 16, 2006 define('HTTP_COOKIE_DOMAIN', 'http://mywebsite.co.uk'); shoud be either www.mydomain.com or just mydomain.com define('DIR_WS_HTTPS_CATALOG', '/catalog/');define('DIR_WS_IMAGES', '/catalog/images/'); define('DIR_WS_ICONS', '/catalog/icons/'); should be: define('DIR_WS_HTTPS_CATALOG', '');define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', 'icons/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); should be: define('DIR_FS_CATALOG', 'actual/path/to/catalog/'); Vger Quote Link to comment Share on other sites More sharing options...
jonnyl Posted June 4, 2006 Share Posted June 4, 2006 Do you have to have a premier or business paypal account to modify: AutoReturn URL addresses? Cause I have a regular account and it works perfect except it returns the user to an empty cart at -shopping_cart.php with appropriate and identical exiting $sid as returning... but the client is then also logged out...and just looking at empty cart page.. what can i do? Would an upgrade to a premier account fix this....by enabling me to change return page to checkout_success.php... or is that an option i can change locally, but i can't find it... also:: any idea why french exiting to paypal, returns to english site? Thanks Jonny Quote Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2006 Share Posted June 4, 2006 Do you have to have a premier or business paypal account to modify:AutoReturn URL addresses? Cause I have a regular account and it works perfect except it returns the user to an empty cart at -shopping_cart.php with appropriate and identical exiting $sid as returning... but the client is then also logged out...and just looking at empty cart page.. what can i do? Would an upgrade to a premier account fix this....by enabling me to change return page to checkout_success.php... or is that an option i can change locally, but i can't find it... also:: any idea why french exiting to paypal, returns to english site? Thanks Jonny Changing your account will not help. You shoul specify checkout_processing.php (with the full www etc) To quote devosc (the true naster at getting poaypal ipn to work simply) The matter mentioned above in the customer's session being lost when returning to the site is because PayPal are/were not transposing the GET params of the form action into POST params (hidden fields) when returning the customer back to the store via the GET method when processing (non-paypal-member) CC payments (or something like that etc). Quote Link to comment Share on other sites More sharing options...
jonnyl Posted June 4, 2006 Share Posted June 4, 2006 Changing your account will not help. You shoul specify checkout_processing.php (with the full www etc) To quote devosc (the true naster at getting poaypal ipn to work simply) The matter mentioned above in the customer's session being lost when returning to the site is because PayPal are/were not transposing the GET params of the form action into POST params (hidden fields) when returning the customer back to the store via the GET method when processing (non-paypal-member) CC payments (or something like that etc). I changed it to POST instead of get and changed the IPN return page through paypal, but then I get a undefined class error something like Paypay_Osc... any ideas? Quote Link to comment Share on other sites More sharing options...
jonnyl Posted June 5, 2006 Share Posted June 5, 2006 I'm still getting this error, even if i change the IPN return page to: http://....../checkout_processing.php Fatal error: Undefined class name 'paypal_osc' in /home/thenaots/public_html/checkout_success.php on line 32 I changed it to POST instead of get and changed the IPN return page through paypal, but then I get a undefined class error something like Paypay_Osc... any ideas? Quote 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.