📚Academy
likeone
online
MODULE 2 · 260 XP

Webhooks Deep Dive

Webhooks are how services talk to each other in real-time. When something happens in one system, it sends an HTTP POST to your endpoint. No polling. No delays.

How Webhooks Work

Click "Trigger Event" to watch data flow through the webhook pipeline step by step.

⚡ Event Occurs
📨 HTTP POST
🎯 Your Endpoint
⚙ Process
✅ 200 OK
{"type":"checkout.session.completed"}

Configure a Stripe Webhook

Build a real Stripe webhook configuration. Pick which events to listen for and set your endpoint URL.

Where to do this in production: Go to your Stripe Dashboard → Developers → Webhooks → "Add endpoint." Paste your Supabase Edge Function URL and select the events below. Stripe will give you a signing secret (starts with whsec_) — save it as an environment variable in Supabase.

Endpoint URL
Events to Listen For

Recommended for a course/product site: Start with checkout.session.completed (fires when someone pays) and customer.subscription.deleted (fires when someone cancels). Add others as your product grows.

checkout.session.completed
payment_intent.succeeded
payment_intent.failed
customer.subscription.created
customer.subscription.deleted
invoice.paid
invoice.payment_failed
charge.refunded
Signing Secret

Always verify the signature to prevent spoofed events.

🔒

This lesson is for Pro members

Unlock all 300+ lessons across 30 courses with Academy Pro. Founding members get 90% off — forever.

Already a member? Sign in to access your lessons.

Academy
Built with soul — likeone.ai