
Stripe HandleEvent
CertifiedValidate and parse Stripe webhooks
Stripe HandleEvent
Validate and parse Stripe webhooks
Validates Stripe webhook signatures with the endpoint secret, then returns the event id/type plus the deserialized data map. Fails fast on signature mismatch; provide the raw request body and the Stripe-Signature header as received.
type: io.kestra.plugin.stripe.webhook.HandleEventExamples
Receive a Stripe webhook
id: stripe_webhook
namespace: company.team
tasks:
- id: handle_webhook
type: io.kestra.plugin.stripe.webhook.HandleEvent
apiKey: "{{ secret('STRIPE_API_KEY') }}"
payload: "{{ trigger.payload }}"
signatureHeader: "{{ trigger.headers['Stripe-Signature'] }}"
endpointSecret: "{{ secret('STRIPE_WEBHOOK_SECRET') }}"
triggers:
- id: webhook
type: io.kestra.plugin.core.trigger.Webhook
key: 4wjtkzwVGBM9yKnjm3yv8r
Properties
apiKey *Requiredstring
Stripe API Key
Secret key for authenticating with Stripe. Starts with 'sk_' for live/test keys.
endpointSecret *Requiredstring
Webhook endpoint secret
Signing secret configured on the Stripe webhook endpoint; required for signature validation
payload *Requiredstring
Webhook payload body
Raw JSON request body from Stripe; must be unmodified for signature verification
signatureHeader *Requiredstring
Stripe-Signature header value
Exact Stripe-Signature header from the incoming request
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
data object
Event data payload
Deserialized object map from event.data.object
id string
Stripe event ID
raw string
Raw webhook payload
Original payload body returned for downstream auditing