Stripe webhook

Stripe webhook

Capture an event via a Stripe webhook

Configuration

OptionDescription
Signing secret
Type: string
Required: False

Used to validate the webhook came from Stripe

Event name
Type: string
Required: False

The event name to capture.

Distinct ID to be used
Type: string
Required: False

The distinct ID for the event to be associated with - defaults to the customer ID.

Include all properties
Type: boolean
Required: True

If set, the entire data.object will be included as properties. You can override specific webhook attributes below.

Property mapping
Type: dictionary
Required: False

Map of stripe webhook attributes and their values. You can use the filters section to filter out unwanted events.

Bypass signature check
Type: boolean
Required: False

If set, the stripe-signature header will not be checked. This is not recommended.

Using our REST API you can create this source_webhook like so:

Terminal
# Create a new destination
curl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \
--data '{
"type": "source_webhook",
"name": "Stripe webhook",
"inputs": {
"include_all_properties": {
"value": ""
}
},
"enabled": true,
"template_id": "template-source-stripe-webhook"
}'

Community questions

Questions about this page? or post a community question.