ViablyViably

Forward Stripe events to Slack in seconds

Viably’s Webhook Relay accepts Stripe webhooks, formats them into clean Slack messages, and posts them to your channels along with periodic revenue report cards.
Trigger
POST /relay?token=
Lands in
The relay log, plus any channel you route to
Setup
5 min
Needs
Stripe dashboard access
#payments
ViaApp9:41 AM

$59.00 · Apr 25, 9:41 AM

Nadia Rahman · Singapore, SG

Product
Pro annual
Plan
$59.00 / monthly
Period
Apr 25 to May 25
Open the contactView in Stripe

Viably adds the name, plan, and billing period to the charge card from invoice.paid.

What this guide produces, as it appears in Slack.

Stripe to Slack in 3 steps

What the cards look like and how payments reach the CRM is on the Stripe Slack integration page. This guide covers setup.

Step 1Create a Stripe Transactions relay

From Viably, create a relay endpoint and select Stripe Transactions in the dropdown. This tells Viably to expect Stripe-formatted payloads and route them to the right Slack message template.

Step 2Add a Webhook Destination in Stripe

In your Stripe dashboard, add a new Webhook Destination with the Viably query-param URL. Select charge.succeeded, charge.failed, invoice.paid, and optionally customer.subscription.updated for cancellation alerts.

Step 3Copy the signing secret back to Viably

Viably needs the Stripe signing secret to verify incoming requests. Copy it from the Stripe dashboard and paste it into your relay endpoint's config in Viably.

Set it up properly, step by step

Viably can receive events directly from Stripe and post them to Slack. Stripe webhook destinations post to a plain URL, so use the query-param token format instead of the Bearer authorization header.

  1. 1
    Create a relay endpoint

    In the Viably dashboard, create a new relay endpoint with Stripe Integration enabled. Once created, open the token dialog and copy the Stripe Webhook Destination. It looks like https://hq.viably.app/relay?token=….

  2. 2
    Create a webhook destination in Stripe

    In your Stripe Dashboard, go to Developers > Webhooks > Add destination. Paste the Viably query-param URL as the Endpoint URL. Select these events: charge.succeeded, charge.failed, invoice.paid, and optionally customer.subscription.updated.

    charge.succeeded captures all successful transactions in Slack, whether from Stripe Checkout or your own API integration. On charge.failed, Viably posts the customer, product, amount, and decline reason, and can spawn a follow-up task so someone reaches out to win the sale back. invoice.paidenriches each charge card with the customer's name, email, phone, and country. customer.subscription.updated is optional, and it fires a cancellation recovery alert when a subscriber schedules their cancellation.

    Do not send other Stripe events to this endpoint. Viably silently drops unrecognised event types, and sending them unnecessarily adds noise to your webhook logs.

  3. 3
    Copy the signing secret

    After saving, Stripe displays a signing secret beginning with whsec_. Copy it to complete your setup on Viably. If you miss it, you can reveal or roll it from the destination details page.

  4. 4
    Complete setup in Viably

    Back in the Viably dashboard, click Edit on the relay endpoint. Paste the whsec_… value into the Stripe webhook secret field and save. Viably will now verify every incoming Stripe request and reject anything unsigned.

  5. 5
    Test it

    Use Stripe's Send test event button on the destination page to fire a sample event. Check your configured Slack channel, where you should see a formatted message within a few seconds.

Why the query-param URL
Stripe webhook destinations send a plain POST and do not support custom Authorization headers. The ?token=… format is the Viably-supported alternative for these integrations. The token dialog shows both URLs once you create the endpoint.

charge.succeeded: Transaction fields

Viably reads the charge object at data.object and maps the following fields into a Transaction card in Slack. Every field is optional, so Viably renders what it can find and omits the rest.

Recognised metadata keys
Viably scans data.object.metadata and surfaces the keys below as labelled fields in the Slack card. When several key aliases are listed, the first non-empty one wins, and any other metadata key is silently ignored.

charge.failed: Failed payment recovery

When charge.failed arrives, Viably posts a red Payment Failed card that names the product, the amount, why the card was declined, and who to reach. By default it also spawns a task assigned to whoever should recover the sale.

Recovery task
New Stripe relays enable a follow-up task on charge.failed out of the box, posted as a card under the alert, assignable to a teammate or left up for grabs. Manage it under Spawn a task when editing the endpoint.
Deduplication
The same customer often fails several times over hours, whether from Stripe dunning retries or a shopper re-entering a declined card. Viably alerts once per customer per day: after the first charge.failed, further failures for the same Stripe customer, or for anonymous checkouts the same payment_intent, are suppressed for a 24-hour window, so one struggling checkout never spams your channel or spawns duplicate recovery tasks.

customer.subscription.updated: Subscription events

Viably classifies each subscription event as a cancellation scheduled, a new activation, or a generic update, each with its own Slack heading. The most actionable scenario is a scheduled cancellation, where Viably posts a recovery alert with the customer’s full contact details and a deadline for your customer care team to reach out before the billing period ends.

Deduplication
Stripe often fires four or five customer.subscription.updated events for a single user action, and some carry cancel_at_period_end: true in both the current and previous attributes, meaning the cancellation was already scheduled. Viably drops those, and only the event where cancel_at_period_end transitions from false to true triggers the recovery alert. New activations and other subscription updates are collapsed into one Slack message per subscription within a 90-second window.

Revenue attribution

Viably matches every payment it relays to a contact, and the contact keeps the channel that first brought them in. This needs no setup: a contact form posts the page it sits on, a checkout puts the event on the charge, and a purchase months later is still credited to the original channel. Your Contacts page then shows the revenue each channel brought in.

One-off purchases need no setup
Viably reads metadata.source on a ticket or a single sale when your checkout sets it. Otherwise it recognises the event a charge names in metadata.description and matches it to the page you sell that event on. A charge it cannot place stays unattributed.
Subscriptions need one optional setting
A renewal charge names the plan and nothing about where the customer came from, so Viably reports that revenue as Direct until you set an origin. To credit it, open Webhook Relay > Subscription origins and name the page each plan is sold from. You set one line per plan, and it applies to charges already captured as well as future ones. If you skip it, everything else on the page works as before.

Periodic reporting

When batch mode is enabled on a Stripe Transactions relay, Viably collects events over a configurable window and posts them to Slack as a single summary card.

Period label

A one-day window shows a single date, as in Apr 25. A multi-day window shows a range, as in Apr 19 – Apr 25. All dates are rendered in your workspace’s configured timezone.

Revenue sparkline

When events span more than one time bucket, a bar sparkline such as ▁▂▄▇█▅▂▁ shows the relative revenue distribution across buckets at a glance, where taller bars mean more revenue in that slot.

Transaction carousel

Up to 20 charges are shown newest first as swipeable cards. Each card's title is the amount, the subtitle is the customer name or email, and the body shows email, phone or location, plan, subscription period, and charge time. If the batch holds more than 20, a footer note shows the remaining count.

Non-revenue events

Only successful charges count toward the total. Failed charges carry an amount but are excluded from the revenue count and the carousel, along with any other event that is neither charge.succeeded nor invoice.paid. Their type names are listed in a footer warning. Failed-charge recovery alerts and tasks only post in real time, outside the batch.

Report header
The batch card header names the endpoint, and the line under it gives the transaction count and the period, as in 5 transactions · 7-day report. When the batch holds more than one charge, a Total Revenue and Avg. Sale stats section follows. Viably de-duplicates Stripe charges by charge ID before calculating the total, so retried or re-delivered webhooks are never double-counted.

Common questions

What teams ask before they turn this on.

How long does it take to get Stripe events into Slack?

A couple of minutes. You create a relay endpoint in Viably, paste its URL into your Stripe webhook settings, and pick the events you care about. You don't need a server or any code.

Which Stripe events are worth sending?

Send successful charges, failed charges and subscription updates. Failed charges are worth acting on the same day, and subscription updates tell you when a plan changes. Viably formats each event into its own Slack card.

Does a payment tell me anything about the customer?

Yes. Viably attaches the payment to a contact keyed on the email address, so the person who filled in your form in March and paid in June is one record, and the reporting can show which channel earned the revenue.

Do I need Stripe's CLI or a tunnel to test this?

No. The endpoint is a public URL from the moment you create it, so you can send a test event from the Stripe dashboard and watch it land in Slack immediately.

Get started

Create your Stripe relay endpoint. Webhook Relay is on the free plan, and every new workspace also gets a 14-day Viably+ trial without a card.

Add Viably to Slack
See it in actionStripe integration