Processing Payments Using Stripe

Integrating stripe with Next.js

Stripe is one of the best financial services out there; it’s straightforward to use and offers excellent documentation to understand how to integrate their APIs.

Before continuing with this lesson, make sure to open an account at Stripe. Once we have an account, we can log in and go to Dashboard, where we’ll retrieve the following information: the publishable key and secret key. We’ll need to store them inside of two environment variables, following this naming convention:

Get hands-on with 1200+ tech skills courses.