Join Chris Oliver for an in-depth discussion in this video Adding the stripe_event gem, part of Adding Stripe Payments to Your Ruby on Rails Application.
- [Instructor] The one very last feature that we need…to build is we need to listen to Stripe's Webhook events…and record charges as they come across in our Rails app,…and that way we can take those charges and offer PDF…receipts to our customers every single time their credit…card is charged.…So, this is super easy, if you go to Stripe's dashboard,…and you look for the Events and Webhook section, each time…that any action is made in your Stripe account,…it will automatically create an event, and you will see…that there are some for charges, invoices, which handle…the payments for a subscriptions, and creation of…subscriptions themselves.…
So there's a whole list of these if you go to their API…documentation that will list out all the various types…of things you can listen to, and there's quite a lot…of different actions.…The one we're concerned with is the charge succeeded action,…and this is the one we're going to be listening to in our…Rails application.…To get a better idea of what we will see in our Rails…
Author
Released
12/16/2016- 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
Skill Level Intermediate
Duration
Views
Related Courses
-
Ruby on Rails 5 Essential Training
with Kevin Skoglund10h 21m Beginner -
Ruby on Rails 5 New Features
with Kevin Skoglund1h 22m Intermediate -
Code Clinic: Ruby
with Kevin Skoglund5h 42m Intermediate -
WordPress: Building a Paid Membership Site
with Morten Rand-Hendriksen1h 48m Intermediate -
Google AdWords Essential Training
with Brad Batesole3h 28m Beginner
-
1. Introducing the Course
-
What we'll be covering2m 23s
-
What you need to know2m 41s
-
Using the exercise files1m 42s
-
-
2. Building the Application
-
Adding products1m 43s
-
Adding users4m
-
Setting up Bootstrap9m 5s
-
-
3. Creating the Checkout Form with Stripe.js
-
Signing up for Stripe3m 15s
-
-
4. Charging the Customer Server-Side
-
Installing the Stripe gem2m 21s
-
Creating a plan in Stripe4m 51s
-
Handling card errors3m 16s
-
-
5. Allowing Users to Update Their Card
-
Reusing the payment form5m 46s
-
6. Allowing Users to Cancel and Resubscribe
-
Cancelling a subscription6m 37s
-
-
7. Adding Receipts with Webhooks
-
Adding the stripe_event gem3m 19s
-
Creating a charge model6m 58s
-
Making PDF receipts9m 27s
-
Rendering PDF receipts3m 10s
-
-
Conclusion
-
Next steps3m 10s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Adding the stripe_event gem