LifterLMS Stripe Webhook Errors: How to Find and Fix Them

What LifterLMS Stripe uses webhooks for, how to read failed deliveries in Stripe, what each error code means on a WordPress site, and how to fix and replay missed events.

  • Add as a preferred source on Google
Illustration for “LifterLMS Stripe Webhook Errors: How to Find and Fix Them”

Stripe has emailed to say webhook deliveries to your site are failing. Or the Webhook Status in LifterLMS says "Not installed", a refund you made in Stripe never reached the order, or a student who paid through Stripe Checkout is still waiting for access. All of these point at the same link: Stripe trying to tell your site something and your site not accepting it.

This guide is for site owners and developers running the LifterLMS Stripe add-on. You will learn which LifterLMS features depend on webhooks, how to read Stripe's delivery log, what each error means on a WordPress site, and how to fix the cause and recover the events you missed.

For installing and connecting Stripe in the first place, see our LifterLMS Stripe setup guide.

What LifterLMS Stripe uses webhooks for

Stripe is part of LifterLMS through the paid LifterLMS Stripe add-on, not the free core plugin. When you connect your Stripe account, the add-on creates a webhook endpoint in Stripe for your site. According to the LifterLMS Stripe documentation it listens for six events:

  • charge.failed and charge.refunded: a charge failing after the fact, and refunds issued from the Stripe dashboard.
  • checkout.session.completed, checkout.session.expired, checkout.session.async_payment_succeeded and checkout.session.async_payment_failed: the outcome of payments made through Stripe's hosted checkout page, including payment methods that confirm later.

It helps to know what webhooks are not used for. LifterLMS renewals are started by your own site on the payment date through its scheduled actions, not by Stripe. A renewal that never happened is a scheduling problem; see recurring payments not processing. Webhooks matter for what happens outside the moment of payment: hosted checkout outcomes, delayed payment methods, refunds and late failures.

When webhooks fail, the symptoms are:

  • Orders paid through Stripe Checkout stay pending and the student is not enrolled.
  • Refunds made in Stripe do not show on the LifterLMS order, so access is not removed.
  • Bank-based or delayed payment methods never move from pending to complete or failed.

Check the Webhook Status in LifterLMS

Go to LifterLMS > Settings > Checkout and open the Stripe section. Webhook Status should show a green check and "Installed". If it says "Not installed":

  1. Click Save Changes on the same screen. The LifterLMS documentation suggests this as the first step, especially when using Stripe Checkout.
  2. Check you are looking at the right mode. Test and live mode have separate webhook endpoints in Stripe. Switching on Enable Stripe Test Mode does not use your live endpoint.
  3. If the status still does not confirm, LifterLMS documents creating the webhook manually in Stripe with the same six events. Before you do, read the delivery log below. An endpoint that exists but cannot be reached is a site problem, and a new endpoint will fail in the same way.

Read Stripe's delivery log

Stripe's delivery log tells you exactly what your site sent back. Open the Stripe Dashboard, go to Workbench, select Webhooks, choose the endpoint that points at your site and open the Event deliveries tab. Each event is listed as Delivered, Pending or Failed. Click a failed one to see the HTTP status code and the response body your server returned.

Make sure you are in the right mode (live or test) and on the endpoint for the right domain. After a domain change or a staging copy, there may be several endpoints, some pointing at sites that no longer exist.

What each webhook error means on a WordPress site

Stripe documents the meaning of each response in its webhooks guide. Here is what each usually means on a LifterLMS site.

Stripe showsLikely cause on WordPressFix
Unable to connectThe site is local, offline, on a staging URL that no longer resolves, or blocked at the network levelPoint the endpoint at a public, live URL; delete endpoints for old sites
302, 301 or another 3xxA redirect: HTTP to HTTPS, www to non-www, a trailing slash rule, a "coming soon" or maintenance plugin, or a language plugin adding a prefixStripe treats redirects as failures. Make sure the site address in WordPress matches the address the endpoint uses, then re-save the Stripe settings so the endpoint is registered at the final URL
401 or 403HTTP basic authentication, a firewall or security plugin, a host-level bot filter, or a CDN challenge page blocking Stripe's serversAllow the webhook URL through the firewall, or allow Stripe's published IP addresses; never put basic authentication in front of a site that takes payments
404The add-on was deactivated, the endpoint URL belongs to an old domain, or a security plugin hides the pathReactivate the add-on, remove stale endpoints, re-save the Stripe settings
405A server or CDN rule refusing POST requests to that URLAllow POST to the endpoint
400Your site received the request but rejected it as invalidEnable debug logging and read the Stripe log on your site (below)
500 or another 5xxA PHP fatal error, memory exhaustion or a database error while handling the eventCheck the PHP error log for the delivery time; see our guide to LifterLMS fatal errors
TLS errorAn expired certificate, a missing intermediate certificate, or TLS older than 1.2Fix the certificate chain; Stripe supports TLS 1.2 and 1.3 only
Timed outThe site took too long to respond: an overloaded server, slow plugins running on every request, or a remote call that hangsFind the slow code; see speeding up a LifterLMS site

The redirect case deserves extra attention, because it is invisible in a browser: your browser follows redirects silently, Stripe does not. Test the endpoint URL from a terminal, without following redirects:

curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" -X POST "https://example.com/the-endpoint-url-from-stripe"

Use the exact URL shown on the endpoint in Stripe. A 3xx code here means you have found the problem. Your site will probably reject the request because it is not a real Stripe event, which is expected; what matters is that it is not a redirect, an authentication challenge or a 404.

Turn on LifterLMS Stripe debug logging

When Stripe reaches your site but the response is an error, the add-on's own log tells you why.

  1. In the Stripe section under LifterLMS > Settings > Checkout, tick Enable Debug Logging and save.
  2. Reproduce the problem, or resend a failed event from Stripe (see below).
  3. Open LifterLMS > Status > Logs and choose the log file whose name starts with stripe-.

Debug logging only records events while it is switched on, so turn it on before you test. Turn it off when you finish; payment logs grow quickly and should not be kept longer than you need.

Recover events that were missed

Fixing the endpoint does not process the events that failed while it was broken. Stripe helps in two ways:

  • Automatic retries. In live mode Stripe keeps retrying failed deliveries for up to three days, with growing gaps between attempts. If you fix the problem within that window, most events arrive on their own. In test mode Stripe retries only three times over a few hours.
  • Manual resend. In the Dashboard, open a failed event and click Resend. This works for up to 15 days after the event. With the Stripe CLI, stripe events resend <event_id> --webhook-endpoint=<endpoint_id> works for up to 30 days.

Older than that, reconcile by hand. Compare recent payments and refunds in Stripe with the orders under the Orders menu in WordPress. For a refund made in Stripe that never reached LifterLMS, record it on the order and remove access as your policy requires. For a completed Stripe Checkout payment whose order is still pending, check the payment in Stripe and then complete the order or enroll the student manually. Add an order note so the history makes sense later.

Stripe can deliver the same event more than once and does not guarantee the order of delivery. If you write your own code against Stripe events, track event IDs so you never process one twice.

Webhooks on staging, local and moved sites

  • Each site needs its own endpoint. A staging copy must not share live mode keys or the live endpoint. Use test mode on staging and read our guide to staging sites and recurring payments.
  • After a domain change, re-save the Stripe settings on the new domain, confirm a new endpoint appears for it in Stripe, then delete the endpoint for the old domain so Stripe stops reporting failures.
  • Changing the connected Stripe account also changes where endpoints live. Follow the LifterLMS guide on changing the connected Stripe account.
  • Developing locally, Stripe cannot reach your computer. Developers can use the Stripe CLI's stripe listen --forward-to command to forward test events to a local site, and stripe trigger to send sample events.

Frequently asked questions

Do LifterLMS renewals depend on Stripe webhooks?

No. Your site starts each renewal charge on the due date through its scheduled actions. Webhooks report events that happen later or outside your site, such as refunds and hosted checkout results.

Will Stripe disable my webhook endpoint?

Stripe warns by email when deliveries keep failing, and an endpoint that fails for a long time can be disabled. Fix the cause and check that the endpoint is enabled in Workbench.

Is it safe to delete old webhook endpoints in Stripe?

Yes, if they point at sites that no longer exist or old domains. Keep the one LifterLMS shows as installed for the live site.

Why does the Webhook Status say installed but events still fail?

The status confirms the endpoint exists in Stripe. It cannot tell whether your server accepts deliveries. The delivery log in Stripe is the real test.

What to do next

Open the Event deliveries tab for your live endpoint now and note the status code of the most recent failures. Match it to the table above, fix the cause, and resend the failed events while they are still within Stripe's window. Then reconcile anything older.

If you are dealing with missing enrollments, refunds that were never applied or a firewall you do not control, our LifterLMS integrations team works on payment set-ups every week, and our support service can reconcile orders with Stripe for you. Contact us with the error code Stripe shows.

Add LifterLMS Expert to your preferred sources

Add lifterlmsexpert.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.

  • Add as a preferred source on Google
Free consultation

Prefer expert help over DIY?

Skip the trial and error. Get specialist LifterLMS help and ship faster.

Talk to a LifterLMS Expert Explore our services

Replies within one business day