Setting up webhooks

In order for the Stripe extension and Stripe’s systems to work together correctly, they must be able to “talk” back and forth. Our Stripe extension communicates to Stripe via their API, but Stripe communicates to the Stripe extension via webhooks.

This document covers how to ensure that your live mode and test mode webhooks are configured correctly.

Verifying the webhook status

↑ Back to top

Since version 8.6.1 of the Stripe extension, webhooks are automatically set up when you connect to Stripe. Thus, there is no need to configure webhooks separately.

If you are upgrading to 8.6.1 or later from an older version of the Stripe extension, you can reconfigure the webhooks as detailed below.

You can verify that your webhooks are working like so:

  1. Navigate to WooCommerce > Settings > Payments > Stripe > Settings.
  2. In the Account details section, click the Configure connection button.
  3. Verify in the Live tab that the webhook status says “Configured.”
  4. Also verify in the Test tab that the test webhook status is “Configured.”

If the statuses are both correct, then your webhooks are working.

You can also verify that the webhooks are being processed successfully in the Account details section.

Reconfiguring webhooks

↑ Back to top

The Stripe extension keeps its webhooks up to date for you. Each time the extension updates, it checks the live mode and test mode webhooks. If a webhook is missing from your Stripe account, the extension creates a new one. If a webhook is out of date, the extension replaces it.

The extension skips these changes in two cases. The first is when the webhook signing secret in your settings was set manually. The second is when the saved webhook points to a different site’s URL, such as on a staging copy of your store.

If the plugin can’t fix a webhook on its own, it shows a notice in your dashboard:

  • The webhook endpoint saved in your settings no longer exists. The webhook is missing from your Stripe account, and the extension couldn’t recreate it. Reconfigure the webhook for that mode using the steps below.
  • Automatic reconfiguration was skipped. The signing secret in your settings was set manually, so the extension didn’t change it. Check that mode’s endpoint in the Stripe dashboard, or reconfigure the webhook to let the extension manage it.

To reconfigure your webhooks:

  1. Navigate to WooCommerce > Settings > Payments > Stripe > Settings.
  2. In the Account details section, click the Configure connection button.
  3. In the Live tab, click Reconfigure webhooks.
  4. In the Test tab, click Reconfigure webhooks.

Reconfiguring creates a new webhook endpoint in your Stripe account and removes the endpoints the extension created before. It doesn’t remove endpoints that you or another service added, even ones that point to the same URL.

If you added your own endpoint at the extension’s URL, delete it in the Stripe dashboard after you reconfigure. The extension now uses the signing secret from its new endpoint, so events sent to your endpoint will fail.

Webhook endpoints

↑ Back to top

Note that our Stripe extension only uses webhook endpoints in the following format:

https://www.example.com/?wc-api=wc_stripe

Any other endpoints you see in the Stripe dashboard likely come from other payment gateways or third-party services that integrate with Stripe.

Related Products

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or...

Offer add-ons like gift wrapping, special messages or other special options for your products.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.