Everything is in place to collect user's payment details. In this lesson, we look at how to process the collected payment details to make a purchase.
Everything is in place to collect user's payment details. In this lesson, we look at how to process the collected payment details to make a purchase.
We start off by introducing the course and what the course is going to cover.
So as to keep this course focus mainly on accepting payment with Stripe, let's clone the starter project for this course from the GitHub repository.
The adonis-stripe package makes it seamless to work with Stripe in AdonisJS 5 applications. So in this lesson, we install and set it up to get our application ready to start accepting payment with Stripe.
In this lesson, we begin the checkout process by setting up Stripe Elements to accept card details.
Everything is in place to collect user's payment details. In this lesson, we look at how to process the collected payment details to make a purchase.
In this lesson, we look at how to set up Stripe webhook for our application so we can use it to fulfill users purchases on our end.
With the webhook all set up, let's start fulfilling users purchase on our end in this lesson.
In the last lesson, we were able to fulfill users purchase and confirmed it in the database. Of course, users of our application will need a way to access the courses they have purchased. Let's add that in this lesson.
As it stands, anybody can watch lessons in a course, provided they know the link of the lesson of the course. In this lesson, we'll add to prevent that.
What if there's some kind of indication that shows users have already purchased a course and instead show them a link to watch the course? We'll look at how to achieve that in this lesson.
I’m a self-taught software developer based in Lagos, Nigeria, with over 8 years of experience. In the last couple of years, I've been doing more teaching because I enjoy sharing my knowledge so that others can benefit from it. Come along as I teach you all I know about AdonisJS, Node.js, and JavaScript at large!