Playing
01. Introduction and demo

Transcript

00:00
If you need to build subscriptions into your app then this course is going to cover everything you need to know to get monthly, yearly or any other duration subscriptions set up very very quickly. Okay let's take a look at what we're going to build and then of course in the next episode
00:15
we'll start from scratch and get everything built out. Okay so I'm currently signed in but if I try to head over to this protected area you can see that I don't have a subscription. It's redirected me over to this plan section which we've just created a basic design for here. Let's go ahead and sign up for a monthly subscription and once we click on that that's going to forward us over
00:35
to Stripe obviously in test mode at the moment where we can go ahead and enter our details to pay. Let's go ahead and do that now. You'll also notice we can do things like add promo codes and this is all configurable. I'll show you how to do that throughout the course. Okay I'm going to go ahead and add in some test credentials here so let's just do any date and we'll just
00:54
choose any CVV. Let's go ahead and enter my name and we'll just add in any fake post code here. Once we've done that we can hit subscribe and that's going to go ahead and process the payment, set the subscription up and redirect us back to our app. So let's go ahead and wait for this payment to be processed and we'll be redirected back over to our dashboard which of course you
01:15
can customize so you could redirect the user to a confirmation page. Let's check the difference out when we now try and access this protected area and you can see sure enough we are in. Now that's not all we're going to leave this out so if we head over to the subscription section over here you'll see that we get some basic details of our subscription which we pull directly from the
01:35
Stripe API. We can also go ahead and hit manage your subscription which will allow your users to dive into updating their card details and all of that stuff. This will forward us over to this section here and you can see I've got a few subscriptions from earlier when I was testing this that the user will be able to cancel their plan, update their card details, whatever else
01:56
they need to do and we can return back to the same page by clicking that button. Now we can also add the ability to cancel and resume a subscription directly from our app as well and you can do this with multiple features within Laravel Cashier. So for example if I wanted to cancel my subscription directly from here I can do that and you can see that now it gives us the option to resume
02:19
and this updates to show us that the subscription is now going to end in one month. We also have access to our invoices as well so this will not only display the invoices but also allow us to download a pdf version of the invoices you can see that's been downloaded as well. So this is a really nice starting point for any app where you need to process subscription payments. We're going
02:41
to be using Laravel Cashier which makes this incredibly straightforward but we're also going to be doing a lot of our own work to display things like the plans, figure out where we are going to store our plans locally and all that good stuff. Okay now we've seen a demo of this let's go ahead and start to build this out completely from scratch.
26 episodes2 hrs 38 mins

Overview

Learn to start accepting subscriptions with Laravel and build a solid foundation for your next application. In fact, it’s exactly how we do things here on Codecourse!

Even if you’re completely new to Laravel, by the end of this course you’ll have a platform where customers can purchase subscriptions and gain access to restricted areas of your application.

We’ll also cover managing subscriptions, cancellations, invoices, giving customers trial periods — and more.

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Episode discussion

No comments, yet. Be the first!