Workflow templateRecover 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.
Workflow illustration
01Trigger
TriggerEach invoice.payment_failed event Stripe posts to the signed Stripe webhook.
02St
StripeUse its customer email, or the Stripe customer's; stop if none.
03
Custom stepStop if the invoice's metadata recovery_attempt equals its attempt count; otherwise set it to the attempt count first.
04Gm
GmailGmail them a short, friendly note with the amount due in major units, currency and the hosted link to pay.
05Sl
SlackAs me, post customer, amount and attempt to the Slack channel id you choose in setup.
06
OutputFinish
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
- Use its customer email, or the Stripe customer's; stop if none.
- Stop if the invoice's metadata recovery_attempt equals its attempt count; otherwise set it to the attempt count first.
- Gmail them a short, friendly note with the amount due in major units, currency and the hosted link to pay.
- As me, post customer, amount and attempt to the Slack channel id you choose in setup.
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.