Payments with Ruby on Rails Master Class by Chris Oliver

Payments with Ruby on Rails Master Class

A step-by-step course for anyone wanting to integrate Stripe payments with Ruby on Rails

Overview

Learn how to integrate Stripe with Rails 5 including multiple plans, upgrades, downgrades, refunds, and more.

“Chris’ Stripe series not only helped us achieve an integration quickly, but more importantly helped us plan our app’s overall payment strategy. It’s clear that Chris thinks like a business person, and that business/technical combination was invaluable to us.” - Matt Brown

"Like most good things in life I only wish I found this course sooner. It saved me hours of frustration, if not days. Chris walked through an extremely useful build example that translated well to my own project. Thanks again Chris." - Justin Kresge

What's included?

Video Icon 59 videos File Icon 4 files

Contents

Introduction to Payments with Rails
What We'll Be Covering In This Course
5 mins
What You'll Need
3 mins
Adding Payments To Existing Apps
3 mins
One-time Payments with Stripe
2.1 Adding Stripe API Keys
6 mins
2.2 Creating Product and Order models
7 mins
2.3 Defining the Shopping Cart
18 mins
2.4 Adding Checkout Page
8 mins
2.5 Stripe Card Elements Javascript
14 mins
2.6 Creating Charges in Stripe
270 MB
2.7 Refunding Charges in Admin
9 mins
2.8 Adding Receipts
9 mins
Source Code
421 KB
Subscriptions with Stripe
3.1 Adding Stripe API Keys
3 mins
3.2 Defining Subscription Models
5 mins
3.3 Adding Movies
7 mins
3.4 Creating Checkout Page
8 mins
3.5 Adding Stripe Card Elements Javascript
7 mins
3.6 Subscribing To A Plan
21 mins
3.7 Subscription Helper Methods
11 mins
3.8 Update Card On File
11 mins
3.9 Swapping Subscription Plans
4 mins
3.10 Resuming Cancelled Subscriptions
8 mins
3.11 Receiving Stripe Webhooks
15 mins
3.12 Adding Charge Receipts
15 mins
3.13 Refunding Charges
10 mins
3.14 Resubscribe With Existing Card
8 mins
Source Code
442 KB
Source Code
711 KB
Testing Stripe Subscriptions
4.1 Testing Stripe with System Tests
17 mins
4.2 VCR, Webmock, and Headless Chrome
6 mins
4.3 Testing with Stripe Ruby Mock
13 mins
[OLD COURSE] Introduction
What we'll be covering
3 mins
What you need to know
3 mins
Source Code.zip
4.11 MB
Building A Simple Subscription Product
Adding products
2 mins
Creating Users
4 mins
Adding Bootstrap
10 mins
Creating The Checkout Form With Stripe.js
Signing up for Stripe
4 mins
Adding a new subscription page
3 mins
[NEW] Stripe Element JS
20 mins
Creating a card token using Stripe.js
8 mins
Sending the card token to the server
8 mins
Making it Turbolinks compatible
3 mins
Charging The Customer Server-Side
Installing the Stripe gem
3 mins
Creating plans in Stripe
5 mins
Creating a customer in Stripe
5 mins
Subscribing our customer in Stripe
2 mins
Handling card errors
4 mins
Protecting products for only paid users
4 mins
Allow Users To Update Their Card On File
Displaying card on file
6 mins
Reusing the payment form
6 mins
Cancelling Subscriptions And Resubscribing
Cancelling a subscription
7 mins
Resubscribing using a new card
4 mins
Resubscribing using an existing card
8 mins
Listening To Webhooks And Adding Receipts
Adding the stripe_event gem
4 mins
Signed Stripe Webhook Events
5 mins
Listening to the charge.succeeded event
3 mins
Creating a charge model
7 mins
Displaying charges in the account page
3 mins
Making PDF receipts
10 mins
Rendering PDF Receipts
4 mins
Wrapping Up
Next steps
4 mins
Bonus Videos
Requiring Cards for Sign Up
30 mins

FAQ

Who should take this course?

If you're a Rails dev that's never built payments into an app before, this is a perfect introduction for you. We'll cover everything you need to know to build a simple monthly subscription based app and then expand on that to add plans, upgrades, downgrades and more.

What do people think of this course?

"I just bought the GoRails Stripe course to help me implement billing for a new SAAS app. Two hours after purchase I had transactions going using the Stripe Elements API and in two more hours I had the Stripe WebHooks API integrated as well as credit card updates and learned a few Rails-isms from Chris that in all my Rails experience, I had never picked up. Not only recommended but strongly recommended. The bottom line is that if you are using Rails and Stripe for billing, you should buy this course now." - Scott Johnson