Shopping carts can be extremely complex as there are many moving parts involved. In this episode, we'll look at some of the considerations when adding this feature and build this implementation in Hotwire.
Continuing on from Episode 334, we look at creating the rest of the functionality of our shopping cart. We look at creating the checkout page with Stripe and handling the webhooks when a checkout session has been completed.
Stripe Checkout is one of my favorite ways to handle payments in Ruby on Rails applications. Stripe Checkouts will soon have an option to embed the Checkout into your web application. In this episode, we'll look at implementing this feature with a StimulusJS controller.
In this episode, we look at two different ways to handle donations with Stripe. The first method is a "no code" way that would work on any website that may not have a backend. The second method, we use the Stripe gem and their API to create a Checkout session for handling donations.