Stripe Payment Failed
WebhookStripe payment fails — AI looks up the customer, creates a priority ticket for enterprise accounts, and alerts billing.
What It Does
Intelligent Stripe payment failure handling with customer context. When a payment fails, the AI does not just alert — it looks up the customer in your database, checks their plan tier and history, and triages accordingly. Enterprise customers and high-value failures get priority tickets. Everything gets logged.
How It Works
- Stripe fires a payment failure event
- Customer lookup — AI queries your database via Supabase MCP to find the customer's plan, history, and account status
- Triage — enterprise customers or amounts over $100 get a high-priority support ticket; others get standard logging
- Slack alert — billing team notified with customer context, failure reason, and recommended action
Example Scenario
An enterprise customer ($2,400/year) has a payment fail due to insufficient funds. The AI looks them up: "Acme Corp, Enterprise plan, customer since 2024, 2 previous failed payments." A high-priority ticket is created. Slack message includes: full history, failure pattern, and suggests "Reach out directly — this is their 3rd failure. Consider offering invoice billing."
Triggers
payment_intent.payment_failed— payment attempt declinedinvoice.payment_failed— subscription renewal failedcharge.failed— direct charge declined
Metadata
What's Included
Required MCPs
MCP servers this template connects to.
Deploy this webhook in minutes
Stripe payment fails — AI looks up the customer, creates a priority ticket for enterprise accounts, and alerts billing.