Forums / Addon Payment Modules / Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Locked

Views: 64,165

Results 1 to 20 of 266
This thread is locked. New replies are disabled.
12 May 2006, 5:07 PM
#1
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Paypal IPN orders not being relayed to cart or emailed to owner or buyer

This PayPal problem has been discussed before, however I have tried the fixes and checked the settings, but PayPal will not send, or the cart will not allow PayPal to send the information required so that we know what the customer purchased. PayPal takes their money, paypal tells us that we have money, however paypal does not tell us what was bought or does any of this information appear anywhere in the cart.

Here are what I have tried so far

I have tried renaming the following file /includes/languages/english/lipstyle/meta_tags.php to meta_tags.php.bak but this did not seem to have an effect.

I then un-installed and re-installed the PayPal module from within Admin, this had no effect.

I have checked that the email matches perfectly the main email account in paypal.

I have this set (as suggested int the cart admin area) https://www.buystephenmackey.co.uk///ipn_main_handler.php ... this is pasted in the IPN place at paypal, only I am not convinced about the 3 ///'s ... however I left them like that in Paypal, as that is how the cart says they should be.

I have set the chmod settings on ipn_main_handler to 777 and it is in the root html folder of buystephenmackey.co.uk

I have set the autoreturn URL to this (suggested by the zen cart)
https://www.buystephenmackey.co.uk///index.php?main_page=checkout_process
this appears to work correctly as the shopper does get back to our site after paypal process.

I would be most grateful if someone could help in this regard, and suggest a fix as the shop is currently live, and we have had a couple of PayPal orders already and I am having to ask the customer for 'which items they bought' as I have no idea, only the amount they spent!

Please help if you can.

12 May 2006, 8:21 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Could you post from the server the /includes/configure.php without your username and password?

You appear to have errors in it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 May 2006, 8:28 PM
#3
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

<?php /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> define('HTTP_SERVER', 'http://www.buystephenmackey.co.uk'); define('HTTPS_SERVER', 'https://wasp.xssl.net/buystephenmackey.co.uk'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'true'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); 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', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/var/www/html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'zen_'); define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'buystephenmackey_co_uk_-_zen3'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'database'); define('DIR_FS_SQL_CACHE', '/var/www/html/cache'); ?>
12 May 2006, 9:56 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Are you sure this is your path to your root directory?

define('DIR_FS_CATALOG', '/var/www/html/');

Also could you post your file, from the server, without your username and password for the:

/admin/includes/configure.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 May 2006, 11:01 PM
#5
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Hi Linda, thanks for taking a look, I am not sure whether that would be the root, I am just taking the lead from my ftp client (smartFTP) and this is the path it reports /var/www/html ...... I can go lower than that of course, but that is where my zen cart installation folder is (index.php is there for example).

Below is the admin configure.php ... I am not convinced about the ///'s I added, I did ask a question about this the day the support site went offline, but due to the changes I never got a response ... I really hope you can help, thanks for trying.

<?php // /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ // Define the webserver and path parameters // Main webserver: eg, <http://localhost> - should not be empty for productive servers // HTTP_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> // HTTP_CATALOG_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_CATALOG_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> /* * URLs for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings */ define('HTTP_SERVER', 'http://www.buystephenmackey.co.uk'); define('HTTPS_SERVER', 'https://wasp.xssl.net/buystephenmackey.co.uk'); define('HTTP_CATALOG_SERVER', 'http://www.buystephenmackey.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://www.buystephenmackey.co.uk'); // Use secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'true'); define('ENABLE_SSL_ADMIN', 'true'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_ADMIN', '/mackey_admin/'); define('DIR_WS_CATALOG', '//'); define('DIR_WS_HTTPS_ADMIN', '/mackey_admin/'); define('DIR_WS_HTTPS_CATALOG', '///'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); 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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_ADMIN', '/var/www/html/mackey_admin/'); define('DIR_FS_CATALOG', '/var/www/html/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'zen_'); define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', '*********'); define('DB_SERVER_PASSWORD', '****************'); define('DB_DATABASE', 'buystephenmackey_co_uk_-_zen3'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'database'); define('DIR_FS_SQL_CACHE', '/var/www/html/cache'); ?>
13 May 2006, 12:13 AM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

define('HTTPS_SERVER', 'https://wasp.xssl.net/buystephenmackey.co.uk');

define('HTTPS_CATALOG_SERVER', 'https://www.buystephenmackey.co.uk');

these 2 lines are a problem as they dont match

define('DIR_WS_CATALOG', '//');

define('DIR_WS_HTTPS_CATALOG', '///');

these are lind of weird too....

Did you do this or did you let the installer autopopulate these fields

Zen cart PCI compliant Hosting

13 May 2006, 6:48 AM
#7
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Thanks for looking Merlin, I added this

define('DIR_WS_CATALOG', '//');

define('DIR_WS_HTTPS_CATALOG', '///');

I don't know what they should be, I can tell you why I did it though. Basically when I was testing the cart I had the cart in a folder /zen3/ off the root, when I moved the cart to the root level I found some things didn't work, and those settings above made things work again. It was trial and error, and I did ask the question the day the old support site closed about these settings but nobody could answer because it closed. My question was could someone show me what the default settings are in those defines, on a site that is in the root folder.

https://wasp.xssl.net/buystephenmackey.co.uk that is the correct address for my secure SSL.

13 May 2006, 1:28 PM
#8
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

I corrected the SSL URL thanks for spotting that merlin, but still no joy ... it must be related to the forward slashes ... I reckon I broke it when dropping it to the root folder from the testing folder and manually changing the configs ... :(

13 May 2006, 1:32 PM
#9
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

I would suggest running the installer again,
point it to a NEW database,

then once the install is done manually change the database names in both config files,

that way the system sets the paths

Zen cart PCI compliant Hosting

14 May 2006, 6:28 PM
#10
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Yes I did that and many other things, by the way the actual path to my secure server was as was but with only one / and NOT 3 of them ! :)

Still having problems, Ajeh has been trying to help me (she has the patience of a saint), but I am struggling now. In the 1.2.7 version I originally had a contrib installed, it was the min order contrib, I had this set up at 10UKP. Strangely I still find that the cart (v1.3.0.1) will not let me go to the checkout unless 10UKP or equivalent is spent. Its great, its what we needed but I think this may be the cause for the concern with PayPal. All the settings I have in my current cart are based on a brand new installation of 1.3.0.1 in another domain. Therefore I know my settings are correct, that is the one thing I do know.

However, I have looked using Beyond Compare, and other utilities at pretty much every file, and cannot see any remnants of the code above. I made the assumption that perhaps this was stowed in the database, but any searches within the database proved fruitless. I now have no idea what else to try, so I am opening this thread again to try and get other views.

I really don't want to have to delete everything, and start again that would be unaceptable but I do want to offer our customers the option to pay via PayPal. So my question is to anyone that might know ...

Which files are the files the cart uses to checkout with, I need to know all of the ones used in the process so I can scour them for any offending code left over from contribs, I am so frustrated, 3 whole days of trying various things and still no joy, I really hope someone can help in this complex matter, thanks for your time.

15 May 2006, 9:46 AM
#11
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

I have had a thought on what this problem might be, could it be that early on in my setting up of ZC I removed all of the zones in admin, would this affect PayPal IPN ? I need to get my zones back then ... how do I do that?

15 May 2006, 4:26 PM
#12
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

I fixed it !!!!!!!

The problem appeared to be related to the ipn_main_handler.php file, I took one that worked from my testing site, and replaced the one on my updated site. I am not sure why it worked, and it may have something to do with CHMOD settings. The ipn file that worked on my other server was CHMOD 644, yet I had been informed somewhere along the way that it should be set to CHMOD 777 or 755 hence my settings. It may have been that the file was not updated fully or correctly since i updated files manually in the first instance. I did previously however copy a brand new version from the v1.3.01 full installation zip but this didn't do any good.

So I have to say a massive thanks to Ajeh, and Merlinpa for their help in helping me try to isolate this problem.

I thought I should post the solution too, so that this post might be of use to others later.

Thanks.

15 May 2006, 7:10 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Thanks for the update ... it is always helpful to post the solution so that others on a similar quest can find an answer that may help them as well ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 May 2006, 6:28 AM
#14
megagumby avatar

megagumby

New Zenner

Join Date:
Oct 2004
Posts:
39
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Could someone please tell me where this 'ipn_main_handler.php' file is located as I want to see if mine is the same as Ive had exact same problems for weeks and happened out of nowhere where suddenly I had no record of orders only payments through paypal and customer was unable to go back to store after payment to download their product as the product would not show.

I have just upgraded my cart but still have the same problem. Have spoken to my server provider they said upgrade but still not working. So all you did was change the prermissions of that file and it was fine? Im hoping it is something as simple at that, although i never changed it in the first place.

Thanks,

Kirsten Smit
kirkyskreations.com/cart

17 May 2006, 6:36 AM
#15
megagumby avatar

megagumby

New Zenner

Join Date:
Oct 2004
Posts:
39
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

ok i found file but mine is 644. .. so any other suggestions?

17 May 2006, 8:06 AM
#16
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Did you try the known fix to this problem first? That is, rename the following file
includes/languages/english/YOURTEMPLATE/meta_tags.php to includes/languages/english/YOURTEMPLATE/meta_tags.php.bak ?

17 May 2006, 9:10 AM
#17
megagumby avatar

megagumby

New Zenner

Join Date:
Oct 2004
Posts:
39
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

no i didn't Ill try this.. thanks

17 May 2006, 1:28 PM
#18
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

@Pauls:

If this issue is about a contribution you recently installed on a previous version of Zen Cart, and is still installed under the newest version of Zen Cart, make sure it is fully compatible with the newests by readings the updates from the appropriate topic where the author originally posted his announcement on the forum. ;)

Perhaps there are more specific answers on that topic you'd be looking for. By reading, and posting, more definite answers could be returned to you.

This might simply be about an incompatible contribution subject. ;)

18 May 2006, 6:24 AM
#19
megagumby avatar

megagumby

New Zenner

Join Date:
Oct 2004
Posts:
39
Plugin Contributions:
0

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

Pauls:

Did you try the known fix to this problem first? That is, rename the following file
includes/languages/english/YOURTEMPLATE/meta_tags.php to includes/languages/english/YOURTEMPLATE/meta_tags.php.bak ?

I dont seem to have 'my template' in this folder..

all I have is :

includes/languages/english/meta_tags.php

Sorry im not very experiennced with this I had alot of help setting up my cart.

18 May 2006, 1:00 PM
#20
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Paypal IPN orders not being relayed to cart or emailed to owner or buyer

make sure that your email address used in zen cart matches the primary email address used in paypal.com and that they are case equal
red Red and RED are all different in paypals eyes for purpose of IPN.

If this dosnt work try uninstalling and reinstalling paypal through your browser in admin-> modules-> payment

try replacing the ipn file located in your stores root file

Zen cart PCI compliant Hosting