Warning: This article was written in 2023, the content might be out of date.

Laravel Cashier

Categories: learning

It is pretty amazing to build a product that accepts payment.

It can be done easily with Stripe and connect Stripe with Laravel Cashier.

Here are the steps that I think can get you started accepting payment in your SaaS.

  1. Have a product that people will pay to use.
  2. Setup a Stripe account.
  3. Setup the products with pricing in Stripe.
  4. Create a Laravel app.
  5. Install cashier.
  6. Create a Product table and adds the product from stripe to the table.
  7. Identify the purchase flow.
  8. Setup Stripe listener CLI.
  9. Test with unit tests and e2e test (dusk).
  10. Push code to production.
  11. Get customer to sign up.

Have the stripe listener setup is essental for development.

Next | Previous