Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

7-13 Testing our Webhook Handler

In this lesson, we use the Stripe CLI to test our webhook handler.

First, we link the Stripe CLI to our Stripe account. Next, we forward all webhook events to our locally running Nuxt server.

From there, we can use the CLI to trigger mock events, just to make sure that our webhook handler is hooked up as we expect.

Stripe CLI: https://stripe.com/docs/stripe-cli

This course was originally built with Nuxt 3, but it's no longer being maintained. You can still follow the lessons, but make sure to use the exact dependency versions listed in the course repository to avoid breaking changes.

If you’re looking for the most up-to-date and fully supported version, we recommend Mastering Nuxt: Full Stack Unleashed , which uses Nuxt 4 and actively being maintained.