Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Payment captured but order missing: fix failed Stripe/PayPal webhooks

DLV-161High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Many stores create or confirm the order only after the payment provider sends a webhook. A webhook is a message the provider posts to a URL on your site when something happens, such as checkout.session.completed or payment_intent.succeeded in Stripe, or PAYMENT.CAPTURE.COMPLETED in PayPal.

Where the order goes missing
  1. Customer paysCard or PayPal charge succeeds
  2. Provider sends webhookRequest to your endpoint returns an error or times out
  3. Order createdNever happens
  4. Emails and stockNo confirmation, no stock change
  5. FulfilmentNothing to ship

The payment succeeds, but the webhook step breaks and everything after it is lost.

Why it costs you leads or sales

The customer has paid and expects a product. With no order there is nothing to ship, so they email, dispute the charge or ask for a refund. You lose the sale, pay fees, and risk chargebacks.

It also hides in plain sight. Revenue in the payment dashboard looks fine, while your store reports undercount. Providers retry failed webhooks for a limited time and may disable an endpoint that keeps failing, so a small fault can turn into days of missing orders.

Paid payments vs orders in the storeExample numbers
Paid payments vs orders in the store (example)Payments in provider: 50 count; Orders in store: 41 count019385041Payments in providerOrders in storecount

Example: 50 payments in a week, but only 41 orders because 9 webhooks failed.

How to check if your site has it

Find paid-but-missing orders
  1. Check webhook delivery in StripeStripe

    Open Developers > Webhooks, select your endpoint and look at recent events. Failed ones show a red status and the HTTP response code your server returned.

  2. Check PayPal notificationsPayPal

    In the PayPal Developer Dashboard open your app and its Webhooks section, then use Webhook events to see recent events and delivery status.

  3. Compare payments with orders

    Export recent payments from the provider and compare the amount, email and time with your store's order list. Any payment without an order is a hit.

  4. Read your server or store logs

    Look for requests to the webhook URL and their status. WooCommerce logs are under WooCommerce > Status > Logs. Shopify apps and custom code have their own logs.

Common response codes and what they usually mean
ResponseUsual cause
400Signature check failed: wrong signing secret, or the request body was changed before verification
401 / 403Firewall, security plugin or login wall blocking the provider
404Wrong or old endpoint URL, or permalinks and routes changed
301 / 302Redirect (http to https, www change); webhooks do not follow redirects reliably
500 / 502 / 504Your code crashed or timed out
TimeoutEndpoint does too much work before replying

How to fix it

Fix the webhook and recover orders
  1. Confirm the endpoint URL

    It must be the exact live URL, using https and the final domain (no redirect). Make sure it points to the right mode: live keys use the live endpoint, test keys the test one.

  2. Check the signing secret

    Copy the endpoint's signing secret (starts with whsec_ in Stripe) into your store or plugin settings. Each endpoint has its own secret, and live and test differ.

  3. Let the provider through

    Allow the requests in your firewall, CDN or security plugin. Do not put the endpoint behind a login, a CAPTCHA or a bot challenge.

  4. Reply fast

    Return a 2xx status quickly, then do slow work (emails, exports) in the background.

  5. Resend the failed events

    In Stripe, open the failed event and choose Resend, or use the Stripe CLI. In PayPal, use the Webhook events list to resend. Make sure your handler ignores duplicates.

  6. Create orders for anything that cannot be replayed

    Events are only kept for a limited time. For older payments, create the order manually from the provider data, or refund the customer and tell them.

  7. Contact affected customers

    Send the confirmation they never got, and check shipping and access are set up.

Where to fix it by platform
  1. Check the gateway plugin

    For WooCommerce, open WooCommerce > Settings > Payments, open the Stripe or PayPal gateway and re-enter the webhook secret. Use the webhook URL the plugin displays.

  2. Exclude the endpoint from security and cache

    Add the webhook URL to the exclusions of your caching and security plugins or firewall rules.

Stripe webhook handler (Node.js, Express) verifying the raw bodyjavascript
const express = require('express');
const Stripe = require('stripe');
const stripe = Stripe(process.env.STRIPE_SECRET_KEY);
const app = express();

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('Signature check failed');
  }

  if (event.type === 'checkout.session.completed') {
    // create the order here, using event.id to avoid duplicates
  }
  res.sendStatus(200);
});

How to confirm it's fixed

Confirmation checks
  • Send a test event from the Stripe dashboard or CLI, or a PayPal webhook simulator event, and see a 2xx response
  • Make a test purchase in test or sandbox mode and confirm an order appears
  • Resent events show as delivered and did not create duplicate orders
  • Every payment from the affected period matches an order, or has been refunded
  • The confirmation email and stock change happen for the new order

How to prevent it happening again

Prevention habits
  • Turn on failure notification emails in Stripe and PayPal and send them to a shared inbox
  • Reconcile payments against orders daily or weekly
  • Re-check the webhook URL and secret after domain, hosting, plugin or security changes
  • Keep the endpoint free of redirects, logins and bot challenges
  • Also create or verify the order on the success page as a backup, where your platform supports it
  • Keep separate live and test endpoints and secrets, clearly labelled

How FunnelGuard handles this

FunnelGuard does not check this yet. Confirming that a webhook reached your store and created an order is a possible future check, not something it does today.

What FunnelGuard does cover nearby: a robot visitor runs your real customer journeys on a schedule, including checkouts, and checks each step and the tracking hits sent to ad and analytics platforms. It stops before payment unless your store's test mode is set up, and it never enters real card details. If a journey breaks before payment, such as a broken button or form, that is the kind of failure it is built for.

For this issue, use the manual route: enable failed-webhook emails in Stripe and PayPal, and run a regular payments-versus-orders comparison. You can also run a test purchase in test mode yourself after every change. A free read-only website audit and a Free plan (1 site, 2 journeys, daily checks, no card) are available if you want to monitor the rest of the funnel.

Webhook handling

Broken

  • Endpoint returns 400, 403 or 500
  • Paid customers have no order
  • Gaps found only when customers complain

Fixed

  • Endpoint returns 2xx quickly
  • Every payment creates one order
  • Failures reach you by email the same day

Questions people ask

Why was my customer charged but no order was created?

Most often the payment provider's webhook to your store failed. Typical causes are a wrong endpoint URL, a wrong signing secret, a firewall blocking the request, or a server error. Check the failed events in your Stripe or PayPal dashboard.

How do I find Stripe webhook failures?

In the Stripe dashboard go to Developers > Webhooks, open your endpoint and review recent events. Failed deliveries show the HTTP response your server returned, which points to the cause.

How do I resend a failed Stripe webhook?

Open the failed event in the Stripe dashboard and choose Resend, or replay it with the Stripe CLI. Fix the endpoint first, and make sure your handler ignores duplicate events so you do not create two orders.

Why does Stripe webhook signature verification fail?

Usually the signing secret is wrong (live and test endpoints have different ones), or the request body was parsed or changed before verification. Stripe signs the raw body, so verify before any JSON parsing.

How long does Stripe retry failed webhooks?

Stripe retries failed deliveries for a limited period and may disable an endpoint that keeps failing. Do not rely on retries. Fix the cause quickly and check the dashboard for events you must resend.

What do I do about customers who paid but have no order?

Replay the failed events if they are still available. If not, create the order manually from the payment details, or refund the customer. Then contact them so they know what is happening.

Can FunnelGuard detect a failed payment webhook?

Not yet. It is a possible future check. FunnelGuard currently runs journeys such as checkouts and checks steps and tracking hits, but it stops before payment unless test mode is set up. Use provider failure emails and regular reconciliation for this issue.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.