Contact Form 7 Stripe Webhook Payment Failed: Causes and Fixes

A Contact Form 7 payment can show as failed while Stripe lists a completed charge. This guide explains which setups use webhooks and how to repair each failure point.

By Oyekale Olawale · Updated November 2026

Quick answer

A failed status beside a successful Stripe charge means the confirmation event did not reach your site, or the add-on rejected it. Open Stripe Workbench, select Webhooks, choose your endpoint and read the status code on the Event deliveries tab. Then match that code to the fix table below. The built-in Contact Form 7 Stripe module has no webhook step, so this problem belongs to add-on plugins such as Pay Addons.

Stripe documents every delivery status

The official webhook guide lists each error and its recommended fix.

Open Stripe’s webhook guide

Which Stripe Setup Do You Use?

Contact Form 7 has shipped an official Stripe module since version 5.5, released in October 2021. Its documentation asks for a publishable key and a secret key, and it requires an HTTPS site. It describes no webhook.

Many sites run a third-party add-on instead. The Pay Addons plugin, Accept Stripe for Contact Form 7, states that webhook setup is required for email notifications and for delayed payment methods such as SEPA. Check which plugin owns the Stripe panel in your admin before you change anything.

SetupWebhook needed?Where to configureNotes
Built-in Contact Form 7 module (5.5+)No, according to the official pageContact > Integration > StripeHTTPS required. A receipt email is sent after the payment settles.
Pay Addons (Accept Stripe for Contact Form 7)Yes, for notification emails, Stripe-hosted checkout redirect and delayed methodsContact Pay, Settings tab, Webhook URL fieldRequires the WordPress REST API. SSL is needed for live payments.
Other add-ons (ZealousWeb, weLaunch and similar)Check the plugin documentationVaries by pluginThe setup pages reviewed list API keys and form tags.

How the Webhook Flow Works

After a customer pays, Stripe sends an event to a URL on your site. The add-on verifies the signature, reads the event type and updates the payment record. A failure at any step leaves the record in its earlier state, although the charge itself succeeded.

Stripe expects the endpoint to answer with a 2xx status quickly. A redirect, an error or a timeout counts as a failed delivery.

Step 1: Read the Delivery Log First

Stripe replaced the older Developers dashboard with Workbench. Open Workbench, select the Webhooks tab, click the endpoint and open Event deliveries. Each event appears as Delivered, Pending or Failed, together with the HTTP status code of the attempt.

An empty log means Stripe sent nothing to this endpoint, which points to Step 2. A declined card is a separate event and appears in the Payments list. A delivery failure appears only in the webhook log.

Status in the logMeaningFix
200DeliveredDelivery works. Check the add-on version and test for plugin conflicts.
Unable to connectStripe cannot reach the hostConfirm the domain is publicly accessible.
302 or other 3xxRedirect, treated as a failureRegister the final URL after the redirect.
400Server cannot or will not process the requestOften a signing secret mismatch. See Step 3.
401, 403, 405Access restrictionAllow Stripe in the firewall and accept POST requests.
404URL does not existCopy the Webhook URL again from the plugin.
500Error inside the handlerRead the PHP error log and test with other plugins off.
TLS errorCertificate problem; TLS 1.2 or higher is requiredRun an SSL server test. See Step 4.
Timed outResponse took too longReturn a 2xx first and defer other work. See Step 6.

Step 2: Register the Endpoint and the Right Events

  1. Copy the Webhook URL from the plugin. Pay Addons shows it in a field labeled Webhook URL on its Settings tab.
  2. In Workbench, open Webhooks, choose Create an event destination and select Your account.
  3. Choose the payload format. Stripe advises the Snapshot format when a third-party tool needs the full event object, so select it unless the plugin documentation says otherwise.
  4. Select the event types. Pay Addons lists checkout.session.completed, checkout.session.async_payment_succeeded, checkout.session.async_payment_failed, checkout.session.expired, payment_intent.payment_failed, payment_intent.succeeded, payment_intent.amount_capturable_updated, payment_intent.requires_action, invoice.payment_succeeded and invoice.payment_failed.
  5. Pick Webhook endpoint as the destination type, paste the URL and save. Then reveal the signing secret for Step 3.

Stripe recommends listening only to the event types an integration needs, because extra events add load to the server.

Follow the plugin’s own walkthrough

The Pay Addons page shows each screen of this setup.

Read the Pay Addons webhook guide

Step 3: Match the Signing Secret to the Right Mode

Each endpoint has its own signing secret, and it begins with whsec_. When one endpoint receives events for both test and live keys, Stripe gives it a different secret for each mode. A secret from the wrong mode fails verification every time.

The Pay Addons changelog lists a fix in version 1.7.3 for a webhook secret that did not work in test mode. Update the plugin before you test in the sandbox. Key and mode mismatches also cause errors in other platforms, and the HubSpot authentication failed guide applies a similar sequence of checks.

When you roll a secret in Workbench, Stripe can keep the old one active for up to 24 hours. That window allows time to paste the new value into the plugin.

Step 4: Remove Redirects and Certificate Problems

Stripe treats every redirect as a failed delivery. A rule that sends HTTP to HTTPS, or the www host to the bare domain, changes the address that Stripe called. Register the final address.

Live endpoints must use HTTPS, and Stripe supports only TLS 1.2 and 1.3. An expired certificate or an incomplete chain produces a TLS error in the log. The SSL certificate renewal error guide explains how to find renewals that failed without a warning.

Step 5: Allow Stripe Through Firewalls, Caches and REST Limits

Stripe advises that a server accept webhooks only from its published IP addresses, so a firewall rule can also block them. Copy the list from Stripe’s IP address page instead of an old forum post. A rule that answers with 403 or a challenge page produces the 401, 403 or 405 statuses in the table. The Rank Math IndexNow 403 guide shows how to check permissions and firewall rules in WordPress.

Pay Addons states that it needs the WordPress REST API. If a plugin disables the REST API, whitelist the Stripe endpoints of the add-on.

A page cache must never answer the webhook URL. Add the URL to the exclusion list of the cache plugin and of any CDN. The Divi AI loading fix follows the same cycle of cache clearing and API testing on another plugin.

Step 6: Return a Fast Response

Stripe reports a Timed out status when the server takes too long to answer. Its documentation tells developers to return a 2xx response before running complex logic. Slow hosting and heavy plugin load both raise the risk. Test with other plugins disabled, then review server load.

Recover Payments That Already Failed

A repaired endpoint does not update past submissions by itself. In live mode, Stripe retries undelivered events for up to three days with exponential backoff. Sandbox events retry three times over a few hours. After that, the event must be resent.

To test, make a payment in test mode, find the payment_intent.succeeded event in the delivery list and click Resend. The Pay Addons guide states that a 200 response makes the plugin display a connected status in the Webhook URL field.

A manual resend does not cancel the automatic retries. Stripe also warns that an endpoint may receive the same event twice, so a handler should skip event IDs it has already processed.

Silent credential failures are common in automation tools. The connector expiry test shows how an expired credential can break a workflow without an obvious error. Teams that act on each paid order can study the n8n email triage build for a tested automation setup, and the API vs MCP vs CLI comparison explains how a payments API differs from other connection methods.

Webhook Add-ons Compared With the Built-in Module

✅ Webhook-based add-ons

  • Stripe confirms the payment status to the site
  • Delayed methods such as SEPA can complete later
  • Notification emails follow the confirmed payment
  • Delivery logs show the exact failure

❌ Added requirements

  • One more endpoint to register and maintain
  • Signing secrets differ between modes
  • Redirects, firewalls and caches can block delivery
  • Past events need a manual resend after a fix

The built-in module needs only two API keys and an HTTPS site, so it suits simple one-time payments. Choose a webhook-based add-on when the features above are required.

How This Guide Was Checked

The steps rely on Stripe’s webhook documentation, the Contact Form 7 Stripe integration page, and the Pay Addons documentation and changelog. All three were reviewed in November 2026. Menu names change between plugin versions, so compare each label with the version installed on your site.

FAQ

Does Contact Form 7 need a Stripe webhook?

The built-in Stripe module needs only a publishable key and a secret key. Add-ons such as Pay Addons require a webhook for notification emails and delayed payment methods.

Why does the form show failed when Stripe shows a successful charge?

Stripe completed the payment, but the confirmation event did not reach the plugin or failed verification. The Event deliveries tab shows the status code that explains why.

Which events should I enable?

Enable the events listed in the documentation of your plugin. For Pay Addons, that list includes payment_intent.succeeded and payment_intent.payment_failed.

How long does Stripe retry a failed webhook?

Live-mode events retry for up to three days with exponential backoff. Sandbox events retry three times over a few hours.

Can I resend an event after fixing the endpoint?

Yes. The Dashboard Resend button works for up to 15 days after the event, and the Stripe CLI command works for up to 30 days.

Do test and live mode need different signing secrets?

Yes. Stripe issues a different secret for each mode, even when one endpoint serves both. Paste the secret that matches the keys in use.

Conclusion

Most failed statuses trace back to one of six causes: a missing endpoint, wrong event types, a mismatched secret, a redirect, a blocked request or a slow response. The delivery log identifies which one applies in a few minutes. Fix that single cause, resend the failed events and confirm a 200 response.

Keep the troubleshooting guide open

Stripe maintains the reference for delivery failures and signature errors.

Read Stripe’s webhook troubleshooting page

Get Notified When New Reviews & Updates are Published

We don’t spam! Read our privacy policy for more info.