Recover failed Stripe payments with friendly Gladly care
When a Stripe payment fails, we find the customer in Gladly, log the details, open a follow-up task, and send a warm note to update their payment method.
When Stripe sends a failed-charge webhook event, act as our dunning care agent and turn a billing failure into proactive, on-brand customer care inside Gladly. First confirm the event is a genuine payment failure. Only proceed for real declined charges: skip $0 authorization checks, skip disputes and chargebacks, and ignore anything that is not an actual failed payment.
Take the customer's email address from the Stripe event and look them up in Gladly with Find Customers. Email is unique per customer in Gladly, so a match returns a single profile. If no matching Gladly customer exists, stop and do nothing: do not create a new customer, note, task, or email.
If a matching customer exists, add an internal note to their timeline with Add Conversation Note. Summarize the failed payment for the support team: the amount and currency, the decline reason, and the related invoice reference. Keep it factual and internal only, and never include full card details. At most include the card brand and last four digits if Stripe provides them.
Create a follow-up task for the support team with Create Task so an agent can own the recovery. Give it a clear title that references the customer and the failed payment, and mention that the customer has already been emailed to update their payment method.
Send a friendly, personalized outbound email to the customer with Send Email inviting them to update their payment method. Keep it empathetic and non-alarming: acknowledge that a recent payment did not go through, reassure them that it happens and is easy to fix, and give one clear, calm next step to update their billing details. Address the customer by name and reference the affected amount, but never mention card details. Gladly's Send Email is a non-routable, non-searchable outbound message, so make the email self-contained rather than expecting a threaded reply.
Example output
Additional information
What does this prompt do?
- Watches for failed payments in Stripe and only acts on real declines, skipping $0 authorization checks, disputes, and chargebacks.
- Finds the matching customer in Gladly by their email so every update lands on the right profile.
- Logs an internal note summarizing what failed (amount, decline reason, and invoice reference) and opens a follow-up task for your support team.
- Sends the customer a friendly, personalized email inviting them to update their payment method, without ever mentioning card details.
What do I need to use this?
- A Stripe account that sends payment event notifications.
- A Gladly account with API access for your support team.
- Customer emails in Gladly that match the email on the Stripe payment.
How can I customize it?
- Change the wording and tone of the customer email to match your brand voice.
- Adjust what counts as a genuine failure, for example ignoring very small amounts or specific decline reasons.
- Decide who the follow-up task is assigned to and how it is titled.
Frequently asked questions
Will the customer see the internal note?
Does it charge the customer again automatically?
Will it contact people over $0 authorizations or disputes?
What happens if the customer is not in Gladly?
Are card details ever included?
Related templates
When a big order lands in Shopify, we pull the customer's Gladly support history, draft a concierge follow-up task, and alert your VIP channel in Slack.
Every weekday morning, get a short, prioritized Slack rundown of open Gladly follow-up tasks, most overdue first, so your support team knows what to tackle.
Every time you add a contact in HubSpot, we automatically create or update their Gladly profile so support always sees up-to-date customer details.
The moment a customer's Stripe subscription changes, we update their Firebase user record so their paid access always matches their real billing status.
When a Stripe charge fails, save the failure to your DynamoDB audit table with duplicate protection and post a Slack triage line that says how worried to be.
The moment a Stripe subscription cancels, record a churn event in Amplitude and add a row to your finance and CS churn tracker sheet.
Turn failed payments into on-brand customer care.
Let your support team recover revenue with a warm, personal touch instead of a cold billing notice.