Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2012
    Posts
    476
    Plugin Contributions
    0

    Default 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).
    Last edited by Dave224; 12 Aug 2025 at 10:27 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,442
    Plugin Contributions
    327

    Default Re: Duplicate Orders

    You're running a very old version of Zen Cart. I haven't seen this issue in recent versions.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,615
    Plugin Contributions
    10

    Default Re: Duplicate Orders

    Plus, ZC version 1.5.7c is not certified to run beyond PHP 8.0.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  4. #4
    Join Date
    Sep 2014
    Location
    Indiana
    Posts
    118
    Plugin Contributions
    0

    Default 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.

  5. #5
    Join Date
    Sep 2014
    Location
    Indiana
    Posts
    118
    Plugin Contributions
    0

    Default Re: Duplicate Orders

    Quote Originally Posted by apollowilcox View Post

    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.

 

 

Similar Threads

  1. v157 PayPal duplicate orders, incomplete orders
    By split63 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 10 May 2022, 09:46 PM
  2. v151 Duplicate Orders
    By Friedrich72 in forum Managing Customers and Orders
    Replies: 25
    Last Post: 1 Aug 2016, 10:35 AM
  3. v154 Duplicate orders in 1.5.3
    By delia in forum General Questions
    Replies: 21
    Last Post: 3 Jun 2016, 07:01 PM
  4. v139h Duplicate Orders
    By Friedrich72 in forum General Questions
    Replies: 4
    Last Post: 18 Sep 2012, 06:04 AM
  5. [duplicate post] Duplicate Orders
    By chris1974 in forum Bug Reports
    Replies: 2
    Last Post: 3 May 2011, 07:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg