Skip to content
Workflow template

Recover failed Stripe payments

Emails the customer a friendly note with the link to update their payment as soon as a Stripe invoice payment fails, and tells your team in Slack. After publishing, you add a webhook endpoint with its address in Stripe and paste the endpoint's signing secret into Whenever.

How it runs

This is the brief Whenever builds from. Change any of it in plain words before you publish.

When

Each invoice.payment_failed event Stripe posts to the signed Stripe webhook.

Then

  1. Use its customer email, or the Stripe customer's; stop if none.
  2. Stop if the invoice's metadata recovery_attempt equals its attempt count; otherwise set it to the attempt count first.
  3. Gmail them a short, friendly note with the amount due in major units, currency and the hosted link to pay.
  4. As me, post customer, amount and attempt to the Slack channel id you choose in setup.

Apps it connects

Related templates

All templates

Agents should build your automations, not be them

Describe your first workflow in plain words. AI building is free within weekly usage limits; you pay when it runs.