Get paid for subscription-based app content. Add Stripe to your Ruby on Rails application to collect payments securely and easily.
- [Instructor] Welcome to this course, we're going to be adding Stripe into your Ruby on Rails app to add subscriptions to charge your customers every month or every year, depending on how you set up your plans. So Stripe offers a bunch of different options. They do one-time payments, subscriptions, you can set up your own marketplace or your own online business, a legal entity and all of that. They can even help you sell stuff inside of other apps, like Twitter, and they will help you prevent fraudulent payments coming across your system.
That will allow us to be fully PCI compliant without doing any of the PCI implementation ourselves, except for SSL. So our application will be fully secure, and the credit card numbers will be encrypted, and they will only ever be seen by Stripe, meaning that your Rails application does not have to implement all of the PCI compliance rules, which is super nice. The other thing we'll be using is the Stripe Ruby gem four hour implementation. This is going to be what happens server-side in Rails.
This will give us the ability to create customers, to look them up, to create and cancel subscriptions, to edit the credit card number on file. All of those things will happen server-side, using the Ruby gem. Now, if you want to read into how Stripe works, you can check out both the payments and subscription section in their docs. The reason why you want to check out payments is because this is the underlying stuff that subscriptions handle. They're just the layer on top of payments to allow you to schedule payments every month or every year.
So this is going to be the Stripe.js documentation that will talk a lot about how this works, but don't worry about reading this if you don't want to, we're going to cover all of that in the course.
- Adding users and products to the application
- Creating a checkout form
- Creating and sending card tokens
- Subscribing the customer
- Charging the customer
- Allowing users to update payment info, cancel, and resubscribe
- Adding receipts with webhooks