WooCommerce Pending Orders Cancelled Automatically: Fix
If WooCommerce keeps cancelling orders that customers were still paying for, the cause is almost always one setting: "Hold stock (minutes)". By default WooCommerce cancels unpaid pending orders after 60 minutes, and it adds the order note "Unpaid order cancelled - time limit reached." If a customer's payment arrives late, through UPI, a bank page or a slow 3-D Secure step, the order may already…
WooCommerce automatically cancels pending orders if they remain unpaid for a certain period of time. This happens in the WooCommerce settings under Products and Inventory, specifically under "Hold stock (minutes)". By default, orders are cancelled after 60 minutes. If a customer's payment arrives late, for instance through UPI or a slow bank page, the order may be cancelled before the payment arrives.
To prevent this, one can change the "Hold stock (minutes)" setting without affecting inventory counts. The setting only applies to orders created through classic checkout, checkout block, or Store API. Orders created by an admin, REST API, or other plugins are not cancelled automatically. The cancellation process runs on a schedule using WooCommerce's scheduled actions system, so orders may be cancelled a few minutes after the limit is reached.
Real customers often get caught in this process due to factors like UPI approvals, bank pages, or 3-D Secure steps that take longer than expected. This guide explains how to identify if the hold-stock timer is the cause, how to check and adjust the setting, and how to ensure paid orders are protected using a reliable webhook.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to