How easy is it to add payments with Stripe's SDKs to a Gatsby app and Node.js Express API? Very! Arguably the developer's platform of choice for adding payments to websites, I'm joined Thor Schaeff from Stripe to show us the ropes and allow Hoist users to start their subscriptions.
Sign up for a Stripe account today: https://ben.sc/stripe
Time Stamps:
00:00 Welcome!
00:17 Episode 3 recap
01:27 Defining today's goal
02:00 Theory: Linking the Auth0 to the Stripe Customer ID
04:50 Getting started: Signing up for Stripe
06:30 Getting Stripe API keys
09:30 Creating a Stripe Customer programatically
15:20 Theory: Creating a Stripe Checkout process
16:30 Aside: Synchronising prices between Stripe and your CMS
19:25 Creating Products and Pricing Plans in Stripe
28:10 Adding a checkout creation endpoint to our Express API
31:35 Aside: How we get an Auth0 Management API access token
33:24 Adding a checkout creation endpoint to our Express API (cont)
48:50 Calling the checkout creation endpoint from the Gatsby app
52:30 Redirecting the user to the Stripe Checkout page
1:02:31 Configuring the Stripe Customer Portal
1:08:00 Adding a portal creation endpoint to our Express API
1:10:20 Redirecting the user to the Stripe Portal page
1:13:25 Theory: How to show a user's current subscription plan
1:15:05 Recap and close
--
Building Hoist focuses on the development journey of a platform designed to help everyone fund effective climate change programs with a single payment.
Episode 1: Gatsby and the Auth0 React SDK (https://ben.sc/hoist-ep1)
Episode 2: Integrating Sanity's Headless CMS with Gatsby (https://ben.sc/hoist-ep2)
Episode 3: Creating a Node.js Express API that can talk to the Auth0 Management API (https://ben.sc/hoist-ep3)
Follow the live development stream: https://ben.sc/twitch
Follow me on Twitter - https://ben.sc/twitter
--
A big shout out to Auth0 (https://auth0.com) who allow me to create these videos as part of my work. Hoist isn't an Auth0 product, but they're keen on seeing it succeed, and hopefully even using it someday!
Find out how Auth0 helps devs innovate and secure their apps: https://a0.to/devs