Cashier Stripe: Metered Billing and Stripe Checkout Support

Dries Vints
Dries Vints

Today we are excited to announce that Cashier Stripe has received some long anticipated updates, including support for Stripe Checkout as well as support for Metered Billing subscription plans.

Stripe Checkout

Stripe Checkout makes it a cinch to implement a way to bill your customers in without writing the billing UI implementation yourself. Simply define the products and prices in your Stripe dashboard and let your customer go through the checkout flow using Stripe's hosted checkout page:

$checkout = Auth::user() ->newSubscription('default', 'price_xxx') ->checkout();return view('your-checkout-view', [ 'checkout' => $checkout,]);

More information about using Stripe Checkout with Cashier can be found in Cashier's documentation.

Metered Billing

Using Metered Billing, you can invoice customers based on their usage, rather than a fixed recurring amount. For example, an email delivery service might charge customers per 10,000 emails sent by their account.

To get started, you simply start a new subscription:

$subscription = Auth::user()->newSubscription('default', []) ->meteredPlan('price_metered') ->create($request->paymentMethodId);

Then, you may report the customer's account usage via the reportUsage method:

Auth::user()->subscription('default')->reportUsage(15);

More information regarding metered billing can be found in Cashier's documentation.

At Larasoft.io Ltd. We offer software development company in London at an unbeatable cost. Our main motive only is customer satisfaction.

Dries Vints
Dries Vints

Latest Stories

Here’s what we've been up to recently.

Request a code sample

Certified Quality. Great Prices

We use cookies to improve your experience and to help us understand how you use our site. By using this site, you accept our use of cookies. Cookie Infox