WooCommerce PayPal Orders Stuck on 'Pending Payment'
Short answer: WooCommerce marks a PayPal order as paid only when it receives confirmation, either when the buyer returns to your site after approving the payment or when PayPal sends a webhook (older integrations used IPN) to your server. If PayPal shows the money but the order sits on "Pending payment", that confirmation never reached WooCommerce or was rejected. Check the webhook status in the PayPal Payments plugin, look for a firewall or security plugin blocking PayPal's requests, exclude checkout and the plugin's endpoints from caching, and review the hold stock timer that may cancel orders before confirmation lands. Then reconcile affected orders by hand against PayPal transaction IDs.
How payment confirmation reaches WooCommerce
There are two routes, and a healthy setup uses both.
| Route | How it works | Weak point |
|---|---|---|
| Buyer return | After approving in the PayPal window, the buyer is sent back to your order received page, and the plugin captures or confirms the payment | Buyer closes the tab, loses signal, or a cached page interrupts the return |
| Webhook / IPN | PayPal's servers call a URL on your site in the background to report the payment | Your server blocks or rejects the request, or the webhook was never registered |
When the return fails, the webhook is the safety net. When both fail, the order stays pending even though the customer has paid and received a receipt from PayPal.
Step 1: Confirm the plugin and connection
Most shops now use the official WooCommerce PayPal Payments plugin, listed on the WordPress plugin directory. Older shops may still run the legacy "PayPal Standard" gateway that relies on IPN.
- Go to WooCommerce > Settings > Payments and open the PayPal settings.
- Check that the account is connected in live mode, not sandbox. Orders placed against a sandbox connection on a live site never confirm properly.
- Note the plugin version and update it if you are several versions behind, after taking a backup.
- If both the legacy gateway and PayPal Payments are active, disable the one you do not use so they do not compete.
Step 2: Check webhook status
The PayPal Payments plugin registers webhooks with PayPal when you connect your account. In its connection or status settings you will find information about the webhook and an option to resubscribe.
- If the webhook is missing or shows an error, use the resubscribe option.
- If your site URL changed (for example from http to https, or a new domain) since connecting, disconnect and reconnect the PayPal account so webhooks point to the current address.
- In your PayPal business account, the developer or notification settings show whether deliveries to your site are failing.
For legacy IPN setups, PayPal's IPN history in your account shows each message and whether your server returned an error.
Step 3: Look for blocks on your server
PayPal's requests arrive from PayPal's servers, not from a browser. Security tools sometimes treat them as suspicious.
- Security plugins and firewalls: check their logs for blocked POST requests around the order time. Allow the plugin's webhook endpoint (usually under
/wp-json/) rather than switching protection off. - Hosting firewalls and bot protection: some hosts and CDNs challenge non-browser requests. Ask the host to allow them for the REST API path.
- REST API disabled: plugins that disable the WordPress REST API for logged-out users also block webhooks. Check Tools > Site Health for REST API warnings.
- Maintenance or password mode: a "coming soon" plugin can answer PayPal with a login page.
Step 4: Exclude checkout from caching
Caching plugins and server caches speed up product pages but break dynamic steps.
- Make sure cart, checkout, the customer account area and the order received page are excluded from page caching. Most caching plugins do this automatically for WooCommerce, but custom rules or CDN settings can override it.
- Exclude
/wp-json/and any?wc-api=URLs. - Disable JavaScript minification or delay for the PayPal scripts if the PayPal buttons behave oddly.
- Clear all caches and place a small live test order.
Step 5: Review the hold stock timer
Under WooCommerce > Settings > Products > Inventory, the Hold stock (minutes) setting cancels unpaid orders after the set time. If confirmations arrive late, an order may already be cancelled when the payment is reported, which confuses both you and the customer.
Keep the timer, because it releases stock from abandoned carts, but make it long enough for slow approvals, for example an hour rather than a few minutes. Fixing webhooks matters more than lengthening the timer.
Reconciling orders that are already affected
Do not bulk-change pending orders to processing. Some of them really were abandoned.
- In PayPal, export or list transactions for the affected days.
- Match each transaction to an order using the invoice or order number, amount and buyer email.
- For a matched order, open it in WooCommerce, change the status to Processing, and add an order note with the PayPal transaction ID. This also sends the processing email to the customer.
- For cancelled orders that were paid, check stock before restoring them, then contact the customer if anything is unavailable.
- Keep a simple spreadsheet of what you changed in case of later disputes.
Testing after the fix
- Place a real low-value order with a PayPal account and one with a card through PayPal.
- Close the browser tab immediately after approving the payment on one test. The order should still update through the webhook within a few minutes.
- Refund the tests from WooCommerce and confirm the refund appears in PayPal.
FAQ
What is the difference between IPN and webhooks?
Both are background notifications from PayPal. IPN is the older system used by legacy gateways; webhooks are used by the current PayPal Payments integration.
Will customers be charged twice if the order stays pending?
Not automatically, but a customer who thinks the order failed may pay again. Reconcile quickly and refund duplicates.
Why do only some orders get stuck?
Often those where the buyer did not return to your site, which leaves the webhook as the only route. That points straight at webhook delivery.
Should we switch back to PayPal Standard?
Generally no. Fix the connection of the supported plugin instead.
If paid orders keep piling up in pending and you would rather hand the investigation over, we are happy to look at it with you.