# WooCommerce orders stuck on pending payment

> Customers were charged but orders still say Pending payment? We find where your gateway's payment notice stops and get WooCommerce updating orders again.

## Why does this happen?

An order sits on “Pending payment” from the moment the customer clicks to pay until your payment provider confirms the money. That confirmation is a separate message the provider sends to your site in the background, called a webhook, callback or IPN. If it never arrives, or crashes when it does, WooCommerce keeps waiting.

The causes we find, most common first:

- **The customer did not finish paying.** They closed the payment window, failed the card security check or changed their mind. These orders are normal. If your provider shows no charge, this is the answer, and WooCommerce cancels them on its own when stock management is on and a Hold stock time is set.
- **The notice is blocked.** A security plugin, hosting firewall or bot protection service sees an automated request from a server it does not know and refuses it. Nothing on your site looks wrong, because only that one request fails.
- **The notice is cached.** A caching layer answers the provider with a stored page, so the code that updates the order never runs. Payment notices usually arrive at an address containing `wc-api` or `/wp-json/`, and those must never be cached.
- **The notice goes to the wrong place.** The site moved to https or a new domain, or added or dropped www, and the gateway still sends to the old address. Many providers treat a redirect as a failed delivery and do not follow it. A gateway left in test mode, or a webhook secret copied from the test account, ends the same way: the notice arrives and your store rejects it.
- **The update crashes.** The notice arrives and WooCommerce starts moving the order to Processing, then a PHP fatal error in another plugin stops it halfway. Plugins that send emails, create invoices or sync stock when an order is paid are common culprits.
- **A gateway plugin update.** A new version changes how it confirms payments or needs its webhook connected again. If every order started sticking at once, check what was updated just before.

Background jobs matter too. WooCommerce runs its unpaid order cleanup through Action Scheduler, and many plugins queue their follow-up work there. When WP-Cron stops, that work piles up as past-due and orders are not updated or cancelled when they should be.

## Try this first

These checks only read information, so they are safe on a live store.

1. **Check whether the money arrived.** Open your payment provider’s dashboard and search for the order by customer email, amount or order number. No charge means the checkout was never finished, so leave the order alone. A successful charge means the notice to your store failed. Do not ask a customer to pay again until you have confirmed the first attempt took no money.
2. **Read the order notes.** In WooCommerce, Orders, open the stuck order and read the Order notes box. If the only notes are about the order being created, the provider’s message never reached your store. A note with an error or a decline reason tells you where it stopped.
3. **Look at the provider’s delivery log.** Most payment dashboards list the webhooks they sent and the reply your site gave. Note the status codes: 403 usually means a firewall refused it, 301 or 404 the wrong address, and 500 a crash on your site. Write them down, but do not delete or recreate the webhook, because your gateway plugin may hold a secret tied to the existing one.
4. **Check the background queue.** Go to WooCommerce, Status, Scheduled Actions and open the Past-due list. A long list there usually means background jobs are not running on time, which needs the [past-due actions fix](https://boltpress.co/fix-wordpress/action-scheduler-past-due-actions/) as well.

Stop and hand it over once you know paid orders are sticking. Changing firewall rules, cache exclusions or webhook settings on a live store can stop every payment from confirming instead of some.

## Why are paid orders being cancelled?

WooCommerce cancels checkout orders that are still unpaid when the Hold stock time under WooCommerce, Settings, Products, Inventory runs out (this only runs when stock management is switched on), and adds the note “Unpaid order cancelled – time limit reached.” That cleanup is meant for abandoned checkouts. When the payment notice is late or never comes, it cancels paid orders too, and their stock goes back on sale. A notice that arrives later can still mark the order as paid, which is why some stores see Pending payment, then Cancelled, then Processing on the same order.

## Is it card testing rather than stuck orders?

Real stuck orders come from real customers who were charged and are waiting for their parcel. A burst of pending or failed orders with random names, the same billing address and nobody chasing them is usually bots testing stolen cards. That needs the [card testing fix](https://boltpress.co/fix-wordpress/woocommerce-card-testing-attack/), and it can fill your order list while the webhook works perfectly.

If customers cannot pay at all, or every attempt is declined, start with [WooCommerce payments failing](https://boltpress.co/fix-wordpress/woocommerce-payment-gateway-not-working/) instead. If the trouble began straight after an update, our [update recovery guide](https://boltpress.co/wordpress-update-broke-your-site-step-by-step-recovery-guide/) covers getting back to a working state safely. For everything else, browse every fix on the [Fix WordPress](https://boltpress.co/fix-wordpress/) page.
