Join our community

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

7-7 Setting up Stripe

In this lesson, we create a Stripe account and set it up in our project.

As long as we define the values in our runtimeConfig, Nuxt will overwrite them using any environment variables that we’ve set.

Also, Nuxt does not send these values to the browser unless we put them inside of the special public object. This helps prevent accidental leaking of app secrets!

useRuntimeConfig: https://nuxt.com/docs/api/composables/use-runtime-config

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.