If you are building a SaaS, you probably want to charge your users so they can use your service. In this module, we hook up our application with Stripe Checkout, a hosted payment gateway that helps accept payments from customers.
Since Stripe does a lot of the heavy lifting thanks to Stripe Checkout, our application's responsibility is mainly to respond to the events sent from Stripe and update our database to keep data in sync.
The process is fairly simple:
- Checkout: Users will choose a plan in the application, and we will redirect them to the checkout. We will identify users in Stripe by using their IDs
- Webhooks: Webhooks are events sent by Stripe to our servers. These eve ...