Hi @ahadimul ,
Thanks for sharing the details. A few things to check:
- Are there any errors in the server or WooCommerce logs around the time these orders happen?
- Which payment gateway is being used? Sometimes gateways return a success after a timeout, causing this duplicate issue.
- Are there caching or security plugins active that might be interfering with the order confirmation page?
A quick test would be to place a few test orders and watch the logs in real time. That usually helps narrow down if it’s WooCommerce, the gateway, or something else.
Thanks for the reply.
Other orders are coming through fine — this doesn’t happen to all orders. It’s random which makes it difficult to troubleshoot the root cause.
We’re using the paypal Advanced card processing gateway.
I checked the paypal logs, no errors found as well
We do use cloudflare as our CDN for caching the site content
Hi @ahadimul,
Based on what you have shared, this pattern is most commonly related to the payment gateway response timing rather than a WooCommerce core bug. With PayPal Advanced card processing, it is possible for the payment to be completed on the gateway side, while the response back to WooCommerce times out or is interrupted. When that happens, WooCommerce shows the generic error message even though the order is already created, which can lead customers to retry and create duplicate orders.
Since Cloudflare is in use, I recommend double checking that checkout and order received endpoints are excluded from caching and performance features. Cloudflare can sometimes interfere with redirect or webhook responses if those pages are cached or optimized. Pay particular attention to the checkout page, the order received page, and any PayPal return or webhook URLs.
It would also help to review the WooCommerce logs around the exact time this happens, especially logs related to PayPal or checkout. You can find guidance on accessing and reviewing WooCommerce logs here: https://woocommerce.com/document/finding-php-error-logs/.
If the issue continues, I recommend reaching out directly to PayPal support for Advanced card processing and sharing timestamps of affected orders, as they can confirm whether delayed or partial responses are occurring on their side.
Let us know what you find after checking the Cloudflare exclusions and logs, and we can take a closer look from there.
Since there’s been no recent activity on this thread, I’m marking it as resolved. Don’t hesitate to start a new thread if you need help in the future.
Your feedback helps others – please consider leaving a review: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/