Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Browse all series

Billing With Laravel Cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's (and Paddle's) subscription billing services. In this series, we’ll take a look at the features of Cashier that will allow you to create the billing portion of a subscription-based SAAS app, including subscribing users to plans, authorizing with middleware, single charges, and invoices.

Progress

Series Info

Episodes
8
Run Time
1h 29m
Difficulty
Intermediate
Last Updated
Dec 8, 2020
Version
Cashier v12

Series Episodes

  1. Stripe (5)
    1. Installation and Usage

      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.
    2. Check the Subscription Status

      In this lesson, we'll use a middleware to check the subscription status of our users. This allows us to prevent them from accessing unauthorized sections of our application.
    3. Single Charges

      In some cases, one-off charges are preferred over subscriptions. With that in mind, let's take a look at how we can accomplish this in Cashier.
    4. Generate Invoices

      Now, let's review how to generate invoices for our customers so they can retrieve them at any time from their dashboard.
    5. Handle Incoming Webhooks

      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.
  2. Paddle (2)
    1. Subscriptions

      Now, let's switch over to the Paddle-specific implementation of Laravel Cashier. We'll focus on how to create and manage subscriptions, and check the subscription status of users.
    2. Single Charges and Receipts

      Next up, we'll take a look at how to create products in Paddle, and trigger one-off charges in Cashier. We'll also discuss how to allow users to download their receipts for their transactions in Paddle.
  3. Mollie (1)
    1. Overview and Usage

      Now, let's take a look at using Cashier with the Mollie payment provider. We'll prepare our plans, create a new subscription, utilize webhooks and configure some coupons.

Continue Learning