To begin, let's use Stripe Elements on the front-end to generate a secure form for our credit card information. We'll then pass that information over to our back-end Laravel app, which leverages Laravel Cashier to generate a subscription for that specific user.
Let's take a look at how to handle webhooks in Stripe. Cashier provides some default functionality for all of the events that Stripe fires. You can make use of those defaults or customize them to fit your needs.