Watch: Make my app know instantly when someone pays | Vovy
Watch Vovy do it on a Mac: "Set up Stripe webhooks so my database updates when people pay". Vovy builds a verified Stripe webhook endpoint, tests it locally with the Stripe CLI, and registers it in Stripe so payments update your app.
"Set up Stripe webhooks so my database updates when people pay"
Vovy builds a verified Stripe webhook endpoint, tests it locally with the Stripe CLI, and registers it in Stripe so payments update your app.
What happens in the video
- Write the webhook endpoint: In Cursor Vovy adds an endpoint that verifies Stripe's signature, then handles checkout.session.completed, customer.subscription.updated, customer.subscription.deleted and invoice.payment_failed.
- Test it on your Mac: It installs the Stripe CLI and runs stripe listen with --forward-to your local endpoint, which sends real sandbox events to your laptop.
- Fire test events: Vovy runs stripe trigger checkout.session.completed and shows each event and your server's response in a table.
- Register the live endpoint: It adds your deployed URL as a webhook destination in Stripe Workbench, picks the same events, and copies the whsec_ signing secret into your server.
- Confirm your database updates: Vovy makes a test purchase and shows the matching row change in Supabase next to the delivered event in Stripe.
Read the step-by-step guideLoading...