• Hi,

    I’m having issues on a site with duplicate orders I was hoping someone could help me with. Orders being made with this payment gateway are appearing twice in the admin, a couple of minutes apart, with separate order numbers but identical transaction numbers.

    In looking at the logs I can see the request being made twice just over a minute apart. The first order (with personal information redacted):

    08-08-2018 @ 00:23:38 - WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.paypal.com/nvp with params: Array
    (
        [TOKEN] => EC-3MC04675589166931
        [PAYERID] => KZEQPNMXL44V8
        [PAYMENTREQUEST_0_AMT] => 118.79
        [PAYMENTREQUEST_0_ITEMAMT] => 101.87
        [PAYMENTREQUEST_0_SHIPPINGAMT] => 14.95
        [PAYMENTREQUEST_0_TAXAMT] => 7.77
        [PAYMENTREQUEST_0_SHIPDISCAMT] => -5.8
        [PAYMENTREQUEST_0_INSURANCEAMT] => 0
        [PAYMENTREQUEST_0_HANDLINGAMT] => 0
        [PAYMENTREQUEST_0_CURRENCYCODE] => USD
        [PAYMENTREQUEST_0_NOTIFYURL] => https://atpscience.com/wc-api/WC_Gateway_PPEC/
        [PAYMENTREQUEST_0_PAYMENTACTION] => sale
        [PAYMENTREQUEST_0_INVNUM] => WC-28724
        [PAYMENTREQUEST_0_CUSTOM] => {"order_id":28724,"order_number":"28724","order_key":"wc_order_5b69ab392e0db"}
        [NOSHIPPING] => 0
        [PAYMENTREQUEST_0_SHIPTONAME] => REDACTED
        [PAYMENTREQUEST_0_SHIPTOSTREET] => REDACTED
        [PAYMENTREQUEST_0_SHIPTOSTREET2] => 
        [PAYMENTREQUEST_0_SHIPTOCITY] => REDACTED
        [PAYMENTREQUEST_0_SHIPTOSTATE] => VA
        [PAYMENTREQUEST_0_SHIPTOZIP] => 20148
        [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => US
        [L_PAYMENTREQUEST_0_NAME0] => Amp-V
        [L_PAYMENTREQUEST_0_DESC0] => 
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_AMT0] => 39.99
        [L_PAYMENTREQUEST_0_NAME1] => Multi Food
        [L_PAYMENTREQUEST_0_DESC1] => 
        [L_PAYMENTREQUEST_0_QTY1] => 1
        [L_PAYMENTREQUEST_0_AMT1] => 39.99
        [L_PAYMENTREQUEST_0_NAME2] => BCAA 2:1:1 - 250g
        [L_PAYMENTREQUEST_0_DESC2] => 
        [L_PAYMENTREQUEST_0_QTY2] => 1
        [L_PAYMENTREQUEST_0_AMT2] => 18.99
        [L_PAYMENTREQUEST_0_NAME3] => Line Item Amount Offset
        [L_PAYMENTREQUEST_0_DESC3] => Adjust cart calculation discrepancy
        [L_PAYMENTREQUEST_0_QTY3] => 1
        [L_PAYMENTREQUEST_0_AMT3] => 2.9
        [L_PAYMENTREQUEST_0_NAME4] => Line Item Amount Offset
        [L_PAYMENTREQUEST_0_DESC4] => Adjust cart calculation discrepancy
        [L_PAYMENTREQUEST_0_QTY4] => 1
        [L_PAYMENTREQUEST_0_AMT4] => 0
        [METHOD] => DoExpressCheckoutPayment
        [VERSION] => 120.0
        [BUTTONSOURCE] => WooThemes_EC
        [USER] => REDACTED
        [PWD] => REDACTED
        [SIGNATURE] => REDACTED
    )
    

    And the second order, just over a minute later:

    08-08-2018 @ 00:25:05 - WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.paypal.com/nvp with params: Array
    (
        [TOKEN] => EC-3MC04675589166931
        [PAYERID] => KZEQPNMXL44V8
        [PAYMENTREQUEST_0_AMT] => 119.83
        [PAYMENTREQUEST_0_ITEMAMT] => 100.89
        [PAYMENTREQUEST_0_SHIPPINGAMT] => 14.95
        [PAYMENTREQUEST_0_TAXAMT] => 7.84
        [PAYMENTREQUEST_0_SHIPDISCAMT] => -3.85
        [PAYMENTREQUEST_0_INSURANCEAMT] => 0
        [PAYMENTREQUEST_0_HANDLINGAMT] => 0
        [PAYMENTREQUEST_0_CURRENCYCODE] => USD
        [PAYMENTREQUEST_0_NOTIFYURL] => https://atpscience.com/wc-api/WC_Gateway_PPEC/
        [PAYMENTREQUEST_0_PAYMENTACTION] => sale
        [PAYMENTREQUEST_0_INVNUM] => WC-28725
        [PAYMENTREQUEST_0_CUSTOM] => {"order_id":28725,"order_number":"28725","order_key":"wc_order_5b69ab93740a6"}
        [NOSHIPPING] => 0
        [PAYMENTREQUEST_0_SHIPTONAME] => REDACTED
        [PAYMENTREQUEST_0_SHIPTOSTREET] => REDACTED
        [PAYMENTREQUEST_0_SHIPTOSTREET2] => 
        [PAYMENTREQUEST_0_SHIPTOCITY] => REDACTED
        [PAYMENTREQUEST_0_SHIPTOSTATE] => VA
        [PAYMENTREQUEST_0_SHIPTOZIP] => 20148
        [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => US
        [L_PAYMENTREQUEST_0_NAME0] => Amp-V
        [L_PAYMENTREQUEST_0_DESC0] => 
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_AMT0] => 39.99
        [L_PAYMENTREQUEST_0_NAME1] => Multi Food
        [L_PAYMENTREQUEST_0_DESC1] => 
        [L_PAYMENTREQUEST_0_QTY1] => 1
        [L_PAYMENTREQUEST_0_AMT1] => 39.99
        [L_PAYMENTREQUEST_0_NAME2] => BCAA 2:1:1 - 250g
        [L_PAYMENTREQUEST_0_DESC2] => 
        [L_PAYMENTREQUEST_0_QTY2] => 1
        [L_PAYMENTREQUEST_0_AMT2] => 18.99
        [L_PAYMENTREQUEST_0_NAME3] => Line Item Amount Offset
        [L_PAYMENTREQUEST_0_DESC3] => Adjust cart calculation discrepancy
        [L_PAYMENTREQUEST_0_QTY3] => 1
        [L_PAYMENTREQUEST_0_AMT3] => 1.92
        [L_PAYMENTREQUEST_0_NAME4] => Line Item Amount Offset
        [L_PAYMENTREQUEST_0_DESC4] => Adjust cart calculation discrepancy
        [L_PAYMENTREQUEST_0_QTY4] => 1
        [L_PAYMENTREQUEST_0_AMT4] => 0
        [METHOD] => DoExpressCheckoutPayment
        [VERSION] => 120.0
        [BUTTONSOURCE] => WooThemes_EC
        [USER] => REDACTED
        [PWD] => REDACTED
        [SIGNATURE] => REDACTED
    )
    

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    Orders being made with this payment gateway are appearing twice in the admin, a couple of minutes apart, with separate order numbers but identical transaction numbers.

    Please reach out to PayPal and see if they are receiving duplicate calls from WooCommerce concerning this, as usually that would be what might be happening. If that is the case, there is probably a theme or plugin conflict that is going on.

    You can read more about plugin and theme conflicts here: ?https://docs.woocommerce.com/document/woocommerce-self-service-guide/

    The best way to determine if the issue is being caused by a theme and/or plugin is to do the following:

    1. Temporarily switch your theme back to the Storefront or Twenty Seventeen Theme.
    2. Disable all plugins except for WooCommerce and PayPal Checkout.
    3. Test to see if the issue has been resolved by running a test order.

    If that resolves the issue where the plugin is not creating duplicate orders, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until you find the one causing the conflict.

    Please let us know how it goes!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    MMW

    (@moneymakewise)

    Hello!

    I am also having constantly duplicated orders and im not using paypal. Just COD.
    Ive search the interent and since 2013 there are so many threats everywhere (Github etc) about this problem!!!!

    Could you please advise how to fix it??
    Im afraid suggestions such disabling all plugins etc to test… its not going to work! We are talkign about ecom pages here and furhermore the problem is so so wide (to many people) that WC should make its own tests! Please help!

    Regards,
    Yiannos

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicate orders’ is closed to new replies.