Enable creators to create Stripe Products with localized prices - CreatorPlatform.xyz - Part 14

In this episode, we'll add support for creators to add Products. Each Product represents something a creator sells. We'll use the Stripe API to create localized products and store their IDs in the database. We'll also use Stimulus.js to add additional nested form elements to our page. We'll test that price localization is working and display a list of products to the creator.

00:00 Introduction
00:37 Create a Product model
02:10 Create a Products controller
03:34 Add a Tailwind UI styled form for creating products
10:58 Review price localization options in the Stripe Product API
15:21 Create the Product in the database
16:15 Create a Product with the Stripe API
23:25 Use Stimulus.js to add nested form inputs
29:43 Generate a controller for testing Checkout as the creator
35:24 Test Checkout price localization
36:38 Display the list of products
42:29 Conclusion

Stripe Product API Reference: https://stripe.com/docs/api/products/create
Playlist: https://www.youtube.com/playlist?list=PLS6F722u-R6IJfBrIRx3a2SBkAL4vUp2p
Code: https://github.com/cjavdev/creators.dev/
Follow me on Twitter: http://twitter.com/cjav_dev

#rubyonrails #ruby #rails