I believe that I've found a solution to this issue (duplicate PayPal orders being placed).
Please see the following post for the solution:
http://www.zen-cart.com/forum/showth...715#post469715
I believe that I've found a solution to this issue (duplicate PayPal orders being placed).
Please see the following post for the solution:
http://www.zen-cart.com/forum/showth...715#post469715
My Contributions: Zen Lightbox | Best Sellers Reloaded
Hi,
I know this is an old thread, but its exactly describing my problem: After a Paypal order, I receive 2 orders.
By following the links given in this topic, you will find similar topics in the Zen forum, and non of them get solved in the end.
I submitted a support ticket at Paypals' support center. That conversation ended with the suggestion to ask the ZenCart community for support.
Probably the reason for receiving 2 orders is because of a late response of ipn_main_handler.php
Can anyone offer any help in order to solve this issue?
cheers![]()
You might experience some relief if you turn off the PDT Token option in your Zen Cart admin (leave it blank)
.
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.
Thank you for your reply.
Removing the PDT token leaves me with only the empty order. The second (real) order is not created.
To me it feels like the first order should not be created at all, but only the second order which is created after paypal received the HTTP 200.
Is there a way to prevent the script to create the first order?
Or maybe even better, maybe the first order should be updated after it receives paypals IPN?
Zen Cart normally only creates *one* order record, and with PayPal Website Payments Standard that occurs when the IPN is received from PayPal.
I'm not sure why your site is operating differently.
As mentioned, I've heard reports of a few people encountering duplicates after enabling the PDT feature. Turning it off in their case resolved the matter.
.
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.
Okay, we went ahread and removed the PDT feature and it seems to be creating only one order now. I guess the issue may be with Windows servers.