• Resolved jdaldana

    (@jdaldana)


    Hi,

    We are recently getting this issue where an order generates 2 different invoice numbers.
    For this month of February 2018, the issue occurred twice.
    One instance today (02/22), and one instance about 2 weeks ago.
    Both orders were paid using PayPal.
    We checked WooCommerce and there was only 1 actual orders for both instances.

    Order #7047 generates PDF invoice #90 and #91.
    WooCommerce have only invoice #90.

    Order #6898 generates PDF invoice #74 and #75.
    WooCommerce have only invoice #74.

    Can you please advise a possible fix for this?

    Please let me know if you need additional information.

    Thanks,
    -JD

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @jdaldana,

    We had a similar case about a month ago.

    As far as I know, this can only happen if two processes complete an order simultaneously and the database cannot keep up. Usually, in addition to double invoices, customers also receive WooCommerce emails twice and any other processes may also execute twice.
    It turned out that they had enabled paypal IPN and also setup their PayPal identity token in the WooCommerce settings. Because of this, orders were confirmed paid twice, by IPN and PDT. You can see this in the right sidebar of the order details page (“Order Notes”).
    You should only use one of the two methods.

    Let me know if that’s indeed the case on your site too!

    With kind regards,

    Michael

    Thread Starter jdaldana

    (@jdaldana)

    Hi Michael,

    Thank you for the feedback.

    If I remember correctly, we have enabled PDT since we were not receiving order confirmation emails before.
    Is our website host/server slow in loading pages that’s causing the duplicate issues?

    I checked the orders paid through PayPal from the start of 2018.
    Out of 14 orders, 7 of those have orders notes that both IPN and PDT payment were completed.

    https://d.pr/FREE/xLxVBc

    For the remaining 7 orders:
    6 of those are noted that only PDT payment have been completed

    https://d.pr/FREE/Zr0413

    1 have IPN payment completed.

    https://d.pr/FREE/4tyGWB

    Thanks,
    -JD

    Plugin Contributor Ewout

    (@pomegranate)

    Hi JD,
    This indicates that it’s very likely that this is indeed what’s causing the double invoice numbers. The server is not too slow, but the requests are too fast. If they happen at exactly the same time, neither have finished and WooCommerce doesn’t know about this.
    If IPN has proven to be unreliable for you, you can just disable it entirely (on the paypal website), so that the orders will only be confirmed by PDT.

    Let us know if you have any other questions!
    Ewout

    Dear All,
    I also have the same problem. From few days the plugin started to create 2 different pdf invoice for the same order, and also 2 email. Why this happen?
    May you be so kind to find a way to correct the issue with an update?
    Thanks. Michele

    Plugin Contributor Ewout

    (@pomegranate)

    This is not an issue with the PDF invoice plugin but with your PayPal settings in WooCommerce. WooCommerce recommends disabling PDT

    Clear the PayPal Identity Token field in the PayPal gateway settings (WooCommerce->Settings->Checkout->PayPal).

    More information and lots of people with the same issue here: https://github.com/woocommerce/woocommerce/issues/13963

    Ewout

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Order Number generates 2 different invoice numbers’ is closed to new replies.