Stripe Cancellation Webhook
A webhook that monitors Stripe subscription cancellations and sends
notifications to Discord.

Set these environment variables:
stripe_subscriptions_readonly - Your Stripe secret key (starts with sk_)
STRIPE_WEBHOOK_SECRET - Webhook endpoint secret from Stripe dashboard
DISCORD_WEBHOOK_URL - Discord webhook URL for notifications
2. Stripe Webhook Configuration
- Go to your Stripe Dashboard → Webhooks
- Add a new webhook endpoint pointing to your Val Town HTTP endpoint URL
- Subscribe to the
customer.subscription.updated,
customer.subscription.updated, customer.updated event
- Copy the webhook signing secret to your environment variables
- Sends Discord notification when a subscription is cancelled
- Includes customer email, subscription details, amount, and cancellation reason
- Sends follow-up message with customer feedback if provided