If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / PayPal Express Checkout support / Curse of the dual orders - IPN & PDT (on Windows IIS)

Curse of the dual orders - IPN & PDT (on Windows IIS)

Locked

Started by robax on 22 Nov 2008, 9:34 AM · Views: 3,613

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
22 Nov 2008, 9:34 AM
#1
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Post #1 by robax

Hello all,

I'll try and make this easy to read:

Setup:
PHP5.x on FastCGI, MySQL5.x, Server 2008 x64, IIS 7.0

I've set up a fresh ZC 1.3.8a purely for the purpose of troubleshooting a PayPal IPN problem. Nothing is installed other than two test products and the basic settings to make PayPal IPN work.

**Problem: **
Paypal IPN orders have no products in them. If PDT is enabled, then two orders are listed, the second now with products.

With only PayPal IPN enabled:

  • Paypal processes payment
  • Order is visible to customer and admin
  • No products are in the order
  • No entry on IPN screen
  • User ip shows as 118.92.182.28 - 66.211.170.66 (buyer - paypal)

With PayPal IPN and PDT enabled:

  • Paypal processes payment
  • Order is visible same as above
  • A second order is also visible
  • Products are in the second order
  • Entry appears on IPN screen
  • User ip shows as 118.92.182.28 - 118.92.182.28 (buyer - buyer)

Notes:
I've listed the user ip's there because I noticed that they are different in each case - one with the Paypal ip and one without - thought it might provide a clue.

Each order has a unique ID showing that each purchase with PDT enabled creates one incomplete order and a separate complete order.

Debug Logs:
My debug logs here show one or two purchases with PDT off and then enabled for the last one (I think).
http://www.dnn101.com/includes/modules/payment/paypal/logs/logs.zip

Extras:
http://www.dnn101.com/extras/phpinfo.php
http://www.dnn101.com/extras/ipncheck.php
http://www.dnn101.com/extras/curltest.php (longer timeout applied)
http://www.dnn101.com/extras/curltest.php?paypal=1

Additional notes:

  1. During setup, I had the error described in the following thread and applied the code fix - seems to work.
    http://www.zen-cart.com/forum/showthread.php?t=82009

  2. The following thread of mine regarding curl time-outs resulted in discovering that my new dedicated server has a strange connection problem specifically to zen-cart.com. My host, Server Intellect, has thus far been unable to figure out why, but I've not found any other sites that have the problem, and Paypal.com also loads fast, so I'm unsure whether it even matters. The difference can be seen on the two curltest.php links above. The first, to Zen-Cart.com is slow, but the second, to PayPal, is fast.
    http://www.zen-cart.com/forum/showthread.php?t=113317&highlight=paypal+debug&page=2

Questions:
If the above-mentioned connectivity issue to zen-cart.com was also affecting Paypal payments, then would that perhaps create the result I'm seeing?

I either need to get just IPN working, or use PDT and stop it from creating two orders.

Thanks for any advice on this. :smile:

Rob

22 Nov 2008, 11:36 AM
#3
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Post #3 by robax

Thanks for the reply Stuart.

It's my own dedicated server at Server Intellect. I've been through every thread and troubleshooting guide here and have eliminated pretty much all of them before making this post.

I'm hoping the doctor will be able to interpret the problem from the logs.

Rob

22 Nov 2008, 12:06 PM
#4
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Post #4 by robax

Oh, one more thing to add.. I run DotNetNuke systems on the same server and PayPal IPN payments work fine with those. I guess that implies that connectivity to PayPal must be ok.

24 Nov 2008, 8:47 AM
#5
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Post #5 by robax

The slow page-load problem mentioned at the end of the first post is now resolved, but this has not fixed the Paypal issues detailed above.

I'm getting desparate.. can anyone read debug logs?

:cry:

27 Nov 2008, 2:53 AM
#6
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Post #6 by robax

I had the domain turned off for a couple of days so those links would have been dead - I've just turned it on again now.

How does one go about dealing with an issue like this? I've done absolutely everything I can think of and am sitting here with nowhere else to go.

Anyone? please?
:lookaroun

27 Nov 2008, 3:21 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #7 by drbyte

While I've seen a few people report this, I've never actually been able to make it happen first-hand on a clean install ... so I've never found a 'fix' for it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Nov 2008, 3:29 AM
#8
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Post #8 by robax

Thanks for the reply DrByte,

I've got it happening right here with a clean install. It's a fresh cart, nothing but a couple of products and my paypal info in it. I made it purely for troubleshooting this.

Were you by any chance able to check the debug logs I posted... is there a clue in there perhaps?

I looked through them, and the debug emails, but I don't know enough to pinpoint the issue.

I've pretty much resolved every other issue that has arisen and am stuck on this one.

Thank you for any further assistance
Rob

27 Nov 2008, 3:35 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #9 by drbyte

There's nothing obvious in the logs :(

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Nov 2008, 3:58 AM
#10
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Post #10 by robax

Ok, thanks for checking anyhow.

I think the only direction for me now is to try and find someone who is successfully running a similar setup. I'll report anything I find.

Regards,
Rob

5 Dec 2008, 11:59 AM
#11
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Post #11 by robax

Just updating the thread.

I ran the cart for a few days with IPN and PDT enabled as described in the thread and decided I would just put up with deleting the duplicate productless orders.

But after a few orders it became apparent that it was only working part of the time. Every second or third order would fail to have a duplicate order and would only bring through the one without products.

I've had to go buy a cheapie Win2003 account to host it for now.

If anyone here ever manages to configure Server2008/IIS7 and PayPal IPN properly, please let me know.

Rob

3 Feb 2009, 8:26 PM
#12
damiencsc avatar

damiencsc

New Zenner

Join Date:
Dec 2008
Posts:
2
Plugin Contributions:
0

Post #12 by damiencsc

Unfortunately, I do not ahve a solution to this problem.

I am having the exact same issue with Paypal IPN and PDT enabled:

  • two orders
  • first one is blank with no products
  • second one is complete with products.

I also searched the entire site and saw tons of threads about this problem. It scares me to see that there hasn't been a solution yet (besides disabling PDT, which noone seems to be sure it fixes the problem anyways).

I don't even mind having to delete the extra order once in a while since the site is low traffic. But every time a customer orders and sees the double order (it's visible to them) then they call in to make sure they only ordered once...

Server details...

Server OS: Windows NT 5.2 build 3790
Database: MySQL 5.0.22-community-nt
HTTP Server: Microsoft-IIS/6.0
PHP Version: 5.1.4 (Zend: 2.1.0)
PHP Safe Mode: Off
POST Max Size: 8M

Zen Cart 1.3.8a
Database Patch Level: 1.3.8

4 Feb 2009, 5:01 AM
#13
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Post #13 by robax

Nope, I did everything I could to find a solution but was unable to.

I can't even find anyone who is successfully running ZC with PayPal on IIS7 to compare with. I find that bizarre because with MS releasing their new web app installer full of PHP apps, there must be plenty of people running up against the same problem.

Note that my issue is very specifically with IIS7 with all the bits I've detailed at the start of this thread. I see that you're using IIS6. Perhaps there's a clue in what's different between our setups, because mine always ran fine on IIS6.

I think it all probably has nothing to do with the server and everything to do with one of the other bits such as PHP or one of the other goofy add-ons that all have to be plugged in to make it work.

I ended up having to buy a nasty $5 a month IIS6 hosting account to sit alongside my fully dedicated quadcore xeon (it's crazy!) just to host 2 of my 3 Zen Carts. The remaining cart isn't using paypal, so it can stay on the big box.

The plan is to wait 6 months and then try again.
Rob