Zen Cart Logo

Duplicate Orders

Views: 1,387

Results 1 to 5 of 5
12 Aug 2025, 9:24 PM
#1
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Duplicate Orders

We've been receiving several duplicate orders recently on our production server, not on every order, but the frequency of duplicate orders seems to be increasing. I've turned on PayPal logging and have compared the logs with duplicate orders with the logs for normal orders. There are no myDEBUG errors logged. The duplicate orders all have 11 PayPal logs recorded: 5 sets of paypalwpp_Paypal_Action_ and Paypal_CURL_ logs, followed by 1 ipn_ log. The CURL logs are (from first to last) SetExpressCheckout, GetExpressCheckoutDetails, DoExpressCheckoutPayment, GetExpressCheckoutDetails, and DoExpressCheckoutPayment. The CURL logs all indicate "Success". No errors are apparent from the logs. Only one payment is received by PayPal.

Logs from a normal order have 7 logs recorded, 3 sets of paypalwpp_Paypal_Action_ and Paypal_CURL_ logs, followed by 1 ipn_ log. The CURL logs are (from first to last) SetExpressCheckout, GetExpressCheckoutDetails, and DoExpressCheckoutPayment. Again, success is indicated on each.

The first paypalwpp_Paypal_Action log after the first 3 sets of paypalwpp_Paypal_Action_ and Paypal_CURL_ logs starts with ec_step2 Re-instantiating $order object. The second paypalwpp_Paypal_Action log after the first 3 sets of paypalwpp_Paypal_Action_ and Paypal_CURL_ logs starts with getLineItemDetails 7 - subtotal comparisons BEFORE line-item calcs. Another duplicate order case shows the same behavior except the order of the last 2 sets of paypalwpp_Paypal_Action_ and Paypal_CURL_ logs is different, being 2 PayPal_Action logs followed by 2 CURL logs. So I'm not sure I can trust the order of the logs as recorded.

Something must be triggering the last two sets of paypalwpp_Paypal_Action_ and Paypal_CURL_ logs when the duplicate orders occur. But why? And how to eliminate duplicate orders? I can not duplicate this behavior on a development system with the same code. Please help!

Dave
zc157c, php 8.2, mysql 8.0, SBA, edit orders, etc. PayPal button only on checkout_payment page. Classic template (not responsive).

13 Aug 2025, 6:18 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Duplicate Orders

You're running a very old version of Zen Cart. I haven't seen this issue in recent versions.

13 Aug 2025, 11:52 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,792
Plugin Contributions:
14

Re: Duplicate Orders

Plus, ZC version 1.5.7c is not certified to run beyond PHP 8.0.

1 Oct 2025, 1:02 PM
#4
apollowilcox avatar

apollowilcox

Zen Follower

Join Date:
Sep 2014
Location:
Indiana
Posts:
123
Plugin Contributions:
0

Re: Duplicate Orders

We are also experiencing duplicate orders from with Paypal Credit card orders - not paypal EFT orders.

Using ZC 2.1; Paypal 1.2.1. It results in one card authorization/ transaction and two identical orders in our admin.

It about has to be something with our site, but the cause has evaded us. We kicked the can down the road and are using authorize.net for CC and turned off the Paypal CC function.

1 Oct 2025, 1:12 PM
#5
apollowilcox avatar

apollowilcox

Zen Follower

Join Date:
Sep 2014
Location:
Indiana
Posts:
123
Plugin Contributions:
0

Re: Duplicate Orders

apollowilcox:

Using ZC 2.1; Paypal 1.2.1. It results in one card authorization/ transaction and two identical orders in our admin.

CORRECTION: It results in **two **card paypal card authorizations/ transactions and two identical orders in our admin.