Introduction to Stripe and Cashier
Transcript was automatically generated and may be inaccurate.
-
–
To handle payments, we're going to be using the Stripe payment gateway. Stripe -
–
has -
–
support for many countries, a list of which you can find used in the link in the -
–
resources -
–
section for this lesson. Stripe offers us the building blocks to create -
–
subscription-based products. It's still quite a bit of work to integrate this -
–
by hand in -
–
an application, even when using Stripe's PHP SDK. There's lots to handle, -
–
such as -
–
capturing the initial payment from the customer and making sure our application -
–
and representation -
–
of subscription stays in sync with the actual subscription status in Stripe. -
–
For example, when Stripe is unable to take payment from a customer, the -
–
subscription -
–
will eventually be cancelled and we need to make sure that we also cancel the -
–
subscription -
–
in our application so a customer cannot continue enjoying access if they're not -
–
paying for -
–
it. To help, the Laravel team has created Cashier, -
–
a package that utilises the Stripe PHP SDK to make using Stripe easier in Laravel -
–
based -
–
projects. We'll be using Cashier to create subscriptions and then redirect our -
–
customers -
–
to Stripe Checkout to capture payment and then leveraging Cashier's built-in -
–
webhooks -
–
to make sure our subscription stays in sync with the actual subscription status -
–
in Stripe.