contact form 7 pay addons
  • Contact Form 7 Stripe Addon
  • Getting Started
    • Download Plugin
    • Configuration
    • Webhook Configuration
  • Basics
    • Form Checkout Redirect
    • Credit Card From (Pro)
    • Payment Elements Form (Pro)
    • Email Notification (Pro)
    • Confirmation page (Pro)
Powered by GitBook
On this page
  • What is a webhook?
  • How to setup a webhook?
  • Enable Webhook signatures (Strongly recommended)
  • Webhook Connection Test
  1. Getting Started

Webhook Configuration

Webhooks allow Stripe to send messages back to your WordPress site. Setting up webhooks is required for cf7 email notification, delayed-notification payment methods such as SEPA.

PreviousConfigurationNextForm Checkout Redirect

Last updated 6 months ago

What is a webhook?

Webhooks allow Stripe to send notifications to your website when certain events occur. For example, if a payment is refunded in Stripe, Stripe can automatically send a notification to your webhook to let your website know.

How to setup a webhook?

In your Stripe dashboard, click Developer -> , then click the Add endpoint button.

To get the endpoint URL, go back to the Setting tab in your WordPress dashboard and you should see a field labeled Webhook URL. Copy the URL or click the copy icon.

Paste the endpoint URL into the dialog box in your Stripe dashboard.

Add the below events to listener

charge.succeeded
charge.failed
charge.captured
charge.refunded
charge.refund.updated
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

Enable Webhook signatures (Strongly recommended)

Generating a signature for the webhook can greatly protect your endpoint from being abused by external parties.

In your Stripe dashboard, go to the webhook settings and click the Signing secret button to generate a signature.

Webhook Connection Test

First of all, let's do some payments with our plugin under test mode, then go to the webhook URL and find any events such as a payment_intent.succeeded. Now click the Resend button to trigger the event again.

If the response is 200 (OK), our plugin will process the event and display a connected status in the Webhook URL field.

Webhooks