Integrations
Sources
Stripe

Stripe source

Receive Stripe webhook events in Knock to trigger workflows and automate actions based on payment and subscription lifecycle events.

The Stripe source enables you to receive Stripe webhook events directly in Knock. Stripe sends webhook callbacks when events occur in your account, such as a successful payment, a subscription change, or a customer update. Knock verifies each payload using your Stripe webhook signing secret, identifies the event type, and executes the actions you configure.

This integration is useful for building notifications around payment lifecycle events: alerting customers about successful charges, notifying your team about failed payments, or triggering onboarding workflows when new customers are created.

Prerequisites

#

Getting started

#
1

Create the source in Knock

Navigate to Integrations > Sources in the Knock dashboard. Click "Create source" and select Stripe as the source type. Give it a name and description.

2

Copy the webhook URL

After creating the source, copy the webhook URL for the environment you want to configure.

3

Add the webhook endpoint in Stripe

In the Stripe dashboard, click "Add endpoint." Paste the Knock webhook URL and select the events you want Stripe to send.

4

Copy the signing secret into Knock

After creating the endpoint in Stripe, Stripe generates a signing secret (starts with whsec_). Copy this value and paste it into the Signing secret field in your Knock source environment configuration.

Once configured, Stripe sends webhook events to Knock in real time. You can verify that events are arriving by checking the event logs on the source environment page.

Pre-configured events

#

Stripe sends a wide range of event types. Below are common events you might map to actions in Knock. You can enable or disable individual event types from the source environment configuration.

Event typeDescription
invoice.paidAn invoice payment succeeded
invoice.payment_failedAn invoice payment attempt failed
customer.subscription.createdA new subscription was created
customer.subscription.updatedA subscription was updated (plan change, renewal, etc.)
customer.subscription.deletedA subscription was canceled
customer.createdA new customer was created
customer.updatedCustomer details were updated
charge.succeededA charge completed
charge.failedA charge attempt failed
payment_intent.succeededA payment intent was confirmed and paid

See the Stripe event types documentation for the full list of available events.

Customization

#

You can modify the default action mappings or add new ones for any event type Knock receives from Stripe. For details on how field mapping works with dot-notation paths, see the HTTP source page.

If you need to map Stripe events to actions beyond triggering workflows, see the full list of available actions in the sources overview.

New chat