Webhook

This guide will help you integrate Stripe webhooks to keep subscription and payment data updated in real-time. It explains key webhook events and how to customize them for your Next.js Supabase SaaS template.

Overview

We use Stripe webhooks to stay updated on key events in both the Checkout and Customer Portal. These webhooks enable real-time synchronization between Stripe and Supabase, ensuring that subscription data is always current.

Key Webhook Events:

By default, we listen to the following events:

  • product.created
  • product.updated
  • price.created
  • price.updated
  • product.deleted
  • customer.subscription.created
  • customer.subscription.updated
  • customer.subscription.deleted
  • checkout.session.completed

Each of these events triggers a webhook that resyncs the necessary data in Supabase, keeping your app's subscription information accurate.

Customizing Webhooks You can customize the webhooks to listen to additional events based on your needs. Refer to the local setup or production deployment documentation for further customization options.

For more information on Stripe webhooks, check out Stripe Webhooks.

On this page