Hi @devbrand,
Thank you for providing the additional details. The issue of orders changing from “Pending Payment” to “Cancelled” despite receiving payment can stem from several factors. Let’s go through some troubleshooting steps.
One possibility is that the payment gateway isn’t sending payment confirmation back to WooCommerce in time. If WooCommerce doesn’t receive the confirmation within a specific time frame, it automatically changes the order status to “Cancelled.” To investigate this, please check the logs for the payment gateway under WooCommerce > Status > Logs and look for any errors or delays related to payment processing. If you find any, please share them here in the form of a screenshot.
Another potential cause could be order expiry settings. By default, WooCommerce cancels orders if payment is not completed within a set time period. To adjust this, go to WooCommerce > Settings > Products > Inventory and either increase the “Hold Stock (Minutes)” value or set it to blank to disable automatic cancellations.
Given that there are a lot of customizations on your site, I suggest creating a staging site using the Storefront theme and enabling only WooCommerce and the payment gateway plugin. Then, place a test order to see if the issue persists.
I’ll be looking forward to hearing your observations.