Skip to content
Template

Post Stripe payments to Slack

Every paid checkout posts the amount and the customer's email to your Slack channel.

The steps

  1. Trigger

    When Stripe sends a webhook

    Sent by Stripe: add the URL in Stripe under Developers → Webhooks for checkout.session.completed, then paste its signing secret (whsec_…).

  2. Step 1

    Filter

    Only continues once the payment is in: a bank debit's checkout completes before it's paid.

  3. Step 2

    Code

    Writes Stripe's amount in plain words: 4900 cents as 49.00 USD, 4900 yen as 4900 JPY. Nothing to set up.

  4. Step 3

    Post to Slack

    Posts the payment to Slack. Add your Slack incoming webhook.

What you need

  • A Stripe account where you can add a webhook endpoint.
  • A Slack workspace where you can add an incoming webhook.
  • A Foliot account (free).

Questions

Can someone fake a payment message?
No. With Sent by Stripe and its signing secret, Foliot refuses any request Stripe didn't sign.
What about payments that take days, like bank debits?
Their checkout completes unpaid, so the Filter stops that run. Add the checkout.session.async_payment_succeeded event in Stripe to post them once paid.