Hi @dabesa
Thank you for contacting Payment Plugins. Issues related to duplicate orders will not be caused by an issue with this plugin because the PayPal plugin does not have any code that creates WooCommerce orders.
Order objects are always fed to the PayPal plugin for payment processing; it does not manage the creation of the WooCommerce order. Give that the unpaid orders have the exact same transaction ID as existing orders, that indicates me you have some code on your site that’s duplicating order objects.
This is indeed critical because we have to recover the unpaid transactions from the customers.
I don’t think those orders are related to a new customer. It sounds to me like an existing order is being replicated. Take a look at the creation time of these duplicate orders and that can help you identify where in the checkout lifecycle the order is being duplicated.
For example:
- Is the duplicate order being created within seconds of the original order? That means you have some code that’s hooking in to the checkout flow.
- Is the duplicate order at a later timestamp, like minutes or hours? If so that points to a possible cron job.
Kind Regards
Hello @mrclayton ,
Thanks for the input, just to clarify they are not duplicated orders.
They are separate orders, with different dates and items, having the same PP transaction ID – far more bizarre!
Here 2 screenshots:
- Order 78458 from Dec 10:
https://pasteboard.co/aoHfDdSbNxu8.png
https://pasteboard.co/1i4G1C6CiwWa.png
- Order 78533 from Dec 12 (same customer, different IP, different products):
https://pasteboard.co/e3rx4vGWsA1q.png
https://pasteboard.co/toO7ouXIJb5h.png
Note that Paypal ID and “Net payout” are the same, even if the order totals are of course different.
Thanks
Hi @dabesa
Thank you for those details. It seems like there is some process that’s grabbing order data from a previous order and copying it over to the new order. Because the PayPal plugin is not involved in the order creation logic I don’t see any possibility that this issue originates from this plugin.
For order #78533, if you login to the paypal.com dashboard can you find a different transaction ID that maps to that order? If you can that would provide a clue that the old order data is being copied over after the payment process completes.
Kind Regards