Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Order created but payment fails silently: how to find and fix it

CNV-210High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Many stores create an order as soon as the customer clicks the pay button. The order starts with a status such as Pending payment or Awaiting payment. The payment gateway (Stripe, PayPal, Adyen and similar) then tries to take the money and tells your store the result.

A silent payment failure is when that second part goes wrong and nobody is told. The card is declined, the gateway times out, or the result message never reaches your store. The order stays open. The customer sees a spinner, a blank page or a vague message. You see an order that looks real but has no money behind it.

Why it costs you leads or sales

The customer thinks they tried to buy and may not try again. You think you have a sale, so you do not follow up. Both sides assume the other will act, and the sale disappears.

It also pollutes your data. Unpaid orders can inflate order counts, trigger confirmation emails or stock reductions, and in some setups fire a purchase event to ad platforms. Your campaigns then optimise on sales that never happened.

Where a silent payment failure breaks the funnel
  1. Customer clicks PayOrder is created as Pending payment
  2. Gateway processes cardDeclined, timed out or abandoned
  3. Result reported to storeWebhook or redirect never arrives
  4. Customer and you notifiedNo error, no retry, no follow-up

The order is created, but the failed payment is never reported, so later steps never happen.

Orders that look real but are unpaidExample numbers
Orders that look real but are unpaid (example)Orders created: 100 orders per week; Actually paid: 88 orders per week; Unpaid, unnoticed: 12 orders per week038771008812Orders createdActually paidUnpaid, unnoticedorders per week

Example: of 100 orders created in a week, a silent failure leaves 12 unpaid and unnoticed, so only 88 are real sales.

How to check if your site has it

Check for silent payment failures
  1. Filter unpaid orders

    In your store admin, list orders with status Pending payment, Awaiting payment or Unpaid. A steady trickle of old ones (older than an hour or two) is a warning sign.

  2. Compare with the gateway

    Open the gateway dashboard (for example Stripe Payments or PayPal Activity). Match the failed or incomplete attempts to those orders by time and amount.

  3. Check webhook delivery

    In the gateway's developer area, look at webhook events. Failed deliveries, 4xx or 5xx responses and timeouts mean the result never reached your store.

  4. Read the error logs

    Check the store's payment logs and your server or PHP error log for errors around the time of unpaid orders.

  5. Run a test purchase yourself

    Use the gateway's test mode and its documented failing test cards. Confirm the customer sees a clear error and the order does not stay open.

Common causes and what you will see
CauseWhat you see
Webhook endpoint failingGateway shows paid, store shows Pending payment
Card declined, error swallowedGateway shows failed, customer saw no message
Redirect after payment brokenCustomer lands on an error or blank page
Script error on the pay buttonOrder created, no gateway attempt at all
Security plugin or firewall blocking callbacksWebhook deliveries return 403

How to fix it

Fix the cause you found above. The steps differ by platform, so start with the tab that matches your store.

Fix by platform
  1. Re-register the webhook

    In WooCommerce go to Settings > Payments, open your gateway and save the settings so the webhook is recreated. Check the gateway dashboard shows it as active.

  2. Allow gateway callbacks

    If a security plugin, firewall or caching layer blocks the webhook URL, add an exception for it. Exclude the checkout and callback URLs from page caching.

  3. Check the logs

    Turn on gateway logging and review WooCommerce > Status > Logs after a test failure.

For custom code, this is the shape of a safe webhook handler. It uses Stripe's Node library as an example, so adapt it to your gateway.

Webhook handler sketch (Node, Express, Stripe)javascript
app.post('/webhooks/stripe', express.raw({ type: 'application/json' }), (req, res) => {
  let event;
  try {
    event = stripe.webhooks.constructEvent(
      req.body,
      req.headers['stripe-signature'],
      process.env.STRIPE_WEBHOOK_SECRET
    );
  } catch (err) {
    return res.status(400).send('Invalid signature');
  }

  if (event.type === 'payment_intent.succeeded') {
    markOrderPaid(event.data.object.metadata.order_id);
  }
  if (event.type === 'payment_intent.payment_failed') {
    markOrderFailed(event.data.object.metadata.order_id);
  }

  res.json({ received: true });
});
Failed payment handling

Before

  • Order stays Pending payment forever
  • Customer sees a spinner or blank page
  • You are not told

After

  • Order marked failed as soon as the gateway reports it
  • Customer sees a clear message and a retry button
  • Stale orders expire and trigger a follow-up

How to confirm it's fixed

Confirmation checks
  • A test payment with a failing test card shows a clear error to the customer
  • The order is marked failed or cancelled, not left as Pending payment
  • A successful test payment moves the order to Paid or Processing
  • Webhook deliveries in the gateway dashboard show 2xx responses
  • No new stale pending orders appear over the next few days
  • No purchase event fires for failed attempts in your analytics

How to prevent it happening again

Prevention habits
  • Review pending orders older than a few hours every week
  • Set up gateway alerts for failed webhook deliveries
  • Retest checkout after plugin, theme, firewall or gateway changes
  • Exclude checkout and callback URLs from caching
  • Rotate gateway keys and webhook secrets on a schedule and update the store at the same time
  • Send a recovery email for abandoned or failed payments
How a silent failure unfolds
  1. 0 min

    Customer clicks Pay and an order is created as Pending payment.

  2. 1 min

    The gateway declines the card or times out. The result never reaches the store.

  3. 2 min

    The customer sees a spinner, closes the tab and leaves.

  4. Next day

    You see an order in the admin and assume it is a sale. Nobody follows up.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. The check combines a test purchase with server checks.

What it checks: a robot visitor runs your real checkout journey on a schedule, from the EU or the US, and verifies each step. It stops before payment unless your store's test mode is set up. If a failure appears it is re-checked from a second region, and then one alert goes out with a screenshot and a likely cause.

What it does not check: it never enters real card details, so it cannot see real customers' declines. It does not read your gateway dashboard or your webhook delivery logs, and it cannot tell which real orders are stuck unpaid.

How to cover the rest by hand: review pending orders weekly, compare them with gateway transactions, watch webhook delivery failures in the gateway dashboard, and run a test purchase with the gateway's failing test cards after every change.

You can start with the Free plan (1 site, 2 journeys, daily checks, no card), or try a paid plan free for 3 days. A free read-only website audit is available too.

Questions people ask

Why is my order created but the payment failed?

Most stores create the order before the gateway confirms payment. If the card is declined, the gateway times out or its result message never reaches your store, the order stays open with no money behind it. Check the gateway dashboard and webhook delivery logs to see which happened.

Why do my orders stay on Pending payment?

Pending payment means the store is still waiting for the gateway's result. Common reasons are a failing webhook, a firewall or security plugin blocking the callback, a broken redirect after payment, or a customer who abandoned the payment page.

How do I find unpaid orders that look like real sales?

Filter your orders by status such as Pending payment or Unpaid, then compare each one with your gateway's transactions by time and amount. Orders with no successful gateway payment are unpaid.

How do I check if my payment webhook is working?

Open the webhook section in your gateway's developer dashboard and look at recent deliveries. Successful ones return a 2xx status. Failures, timeouts or 403 and 500 responses mean your store is not receiving payment results.

Can a failed payment still trigger a purchase event in analytics?

Yes, if the purchase event fires when the order is created rather than when payment is confirmed. That inflates conversions and misleads ad platforms. Fire the event only on a confirmed payment or a real thank-you page.

What should the customer see when a payment fails?

A plain message saying the payment did not go through, the reason if the gateway gives one, and a clear way to retry or use another method. A spinner or blank page loses the sale.

Can FunnelGuard detect silent payment failures?

Only partly. It runs a test purchase journey and server checks on a schedule and alerts you when the flow breaks. It does not use real card details or read your gateway's logs, so you also need to review pending orders and webhooks yourself.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: test purchase + server checks.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.