Skip to main content

Stripe Integration

Dispatch integrates with Stripe to receive webhook events for charges, payments, subscriptions, and more.

Connecting Stripe​

You connect Stripe by adding a webhook endpoint in your Stripe Dashboard and pointing it at a Dispatch source. There's nothing to authorize.

In Dispatch​

  1. Go to Sources → Add Source → Stripe
  2. On Connect Stripe webhooks, click Generate webhook URL
  3. Copy your webhook URL. Keep this screen open: you'll paste Stripe's signing secret here in a moment.

In your Stripe Dashboard​

  1. Open the Stripe Dashboard and go to Developers → Webhooks → Add endpoint
  2. Paste your Dispatch webhook URL and select the events you want to receive
  3. Save the endpoint, then copy its Signing secret (it starts with whsec_)

Paste your signing secret, then finish​

  1. Back in Dispatch, paste the signing secret into the field under Paste your Stripe signing secret. Dispatch checks its format as you type and saves it as soon as you leave the field, so a test event sent from Stripe already verifies.
  2. Click Done, or press Enter in the field. Done is available once the complete signing secret is entered (it starts with whsec_). If the secret can't be saved, the setup stays open and tells you why, so you can try again — unless you closed the dialog while it was saving, in which case the dialog closes and the unfinished source is removed.

Supported Stripe Events​

The event type is extracted from the type field in the Stripe payload (e.g., payment_intent.succeeded).

CategoryEvents
Chargescharge.succeeded, charge.failed, charge.refunded
Payment Intentspayment_intent.succeeded, payment_intent.payment_failed, payment_intent.created, payment_intent.canceled
Subscriptionscustomer.subscription.created, customer.subscription.updated, customer.subscription.deleted
Invoicesinvoice.paid, invoice.payment_failed, invoice.finalized
Customerscustomer.created, customer.updated, customer.deleted
Checkoutcheckout.session.completed, checkout.session.expired

Stripe can send any event type — configure your Stripe webhook to send only the events you need.

Signature Verification​

Stripe webhooks include a Stripe-Signature header. Dispatch verifies this automatically using your webhook's signing secret.

Stripe-Signature: t=1614556800,v1=...

Use the signing secret exactly as shown in your Stripe Dashboard — it begins with whsec_.

If the signing secret changes​

If you roll the endpoint's signing secret in Stripe, or deliveries are rejected because the saved secret doesn't match, you don't need a new source:

  1. On the Sources page, open Edit Source on the Stripe source
  2. Paste the current signing secret from Stripe into Stripe signing secret
  3. Click Save

Deliveries verify against the new secret from then on, and your webhook URL stays the same.

Auto-Formatted Embeds​

When no custom template is assigned, Dispatch auto-detects Stripe payloads and generates specialized embeds:

Charge Events​

  • Shows amount, currency, and status
  • Includes customer email and payment method details

Payment Intent Events​

  • Shows amount, currency, and intent status
  • Includes failure reason for failed payments

Subscription Events​

  • Shows plan name, interval, and customer
  • Color-coded by action (green for created, blue for updated, red for canceled)

Invoice Events​

  • Shows amount due, due date, and customer
  • Includes line item count

Removing a Stripe source​

  1. In Dispatch, delete the source from the Sources page (see Deleting and Archiving)
  2. In your Stripe Dashboard, delete the webhook endpoint that points at the source's URL, so Stripe stops sending to it