๐Ÿ‡ฌ๐Ÿ‡ง EN
๐Ÿ‡ฎ๐Ÿ‡น IT

๐Ÿ’ณ Stripe Trigger

The Stripe Trigger fires a workflow when Stripe sends a webhook event to your Flusso endpoint. It automatically validates Stripe's webhook signature so you can be certain that every event genuinely came from Stripe โ€” not from a spoofed request. Common use cases include reacting to successful payments, subscription changes, and invoice events.

Category: Triggers  ยท  Type identifier: stripe_trigger

Overview

Stripe uses webhooks to notify your applications of events that happen in your Stripe account: a customer's payment succeeded, a subscription was cancelled, an invoice became overdue. The Stripe Trigger makes it easy to respond to these events in Flusso without writing any code.

Unlike the generic Webhook Trigger, the Stripe Trigger handles Stripe-specific signature validation automatically. Stripe signs every webhook payload with your webhook signing secret (using HMAC-SHA256 and a timestamp to prevent replay attacks), and Flusso verifies that signature before firing the workflow. If the signature is invalid, the request is rejected and the workflow does not run.

You can optionally filter the trigger to only fire for specific Stripe event types โ€” for example, only payment_intent.succeeded โ€” by entering event type names in the Event Types field. Leave it blank to accept all Stripe events and use a Switch node downstream to route different event types to different logic.

Configuration

Field Required Description
Webhook Secret Required The webhook signing secret from your Stripe Dashboard. This is the whsec_โ€ฆ value shown under Developers โ†’ Webhooks โ†’ [your webhook endpoint] โ†’ Signing secret. Flusso uses this to verify every incoming request came from Stripe.
Event Types Optional A comma-separated list of Stripe event types that this trigger accepts. For example: payment_intent.succeeded, customer.subscription.deleted. If left blank, the trigger fires for all event types that Stripe sends to this endpoint.

Finding your Stripe Webhook Secret

  1. Log in to your Stripe Dashboard at dashboard.stripe.com.
  2. Go to Developers โ†’ Webhooks in the left sidebar.
  3. Click "Add endpoint" and enter your Flusso workflow's webhook URL. You can find this URL in the Stripe Trigger's configuration drawer in Flusso.
  4. Select the events you want Stripe to send. You can select all events or specific ones.
  5. After saving, click "Reveal" next to "Signing secret". Copy the whsec_โ€ฆ value and paste it into the Webhook Secret field in Flusso.

Output Data

VariableTypeDescription
trigger.output.payload Object The full Stripe event object, including the data.object field that contains the event's subject (e.g. the PaymentIntent or Subscription object).
trigger.output.event_type String The Stripe event type string, e.g. payment_intent.succeeded, customer.subscription.deleted.
trigger.output.headers Object The HTTP request headers from Stripe, including the stripe-signature header used for validation.
// Access the event type {{ trigger.output.event_type }} // Access the Stripe object (e.g. a PaymentIntent) {{ trigger.output.payload.data.object.id }} {{ trigger.output.payload.data.object.amount }} {{ trigger.output.payload.data.object.currency }} // Access customer email from a charge event {{ trigger.output.payload.data.object.billing_details.email }}

Example Usage

Send a thank-you email on successful payment

  1. Add a Stripe Trigger. Enter your webhook signing secret and set Event Types to payment_intent.succeeded.
  2. Add an HTTP Request node to look up the customer's email address from your database or from the Stripe API using {{ trigger.output.payload.data.object.customer }}.
  3. Add an Email Notification node. Set the recipient to the customer's email and include the payment amount in the body:
    Thank you for your payment of ${{ trigger.output.payload.data.object.amount_received }}!

Tips & Notes

Keep your webhook secret secure. The webhook signing secret is a sensitive credential. Never share it, commit it to source control, or display it in logs. If it is ever exposed, immediately rotate it in the Stripe Dashboard and update the value in Flusso.

Related Nodes