Accepting payments has become easier than ever. Stripe is a platform that enables so many entrepreneurs to branch out and make their own way building products, tools, and services that can be paid for digitally and in many varied formats.
While Stripe Checkout is simple at face, there are a few important steps to take when adding it to a Ruby on Rails app for maximum security and compatibility. This is a concise guide on how to add Stripe Checkout and Stripe Customer Portal to your Ruby on Rails app. These two offerings complete the circle of a complete billing solution that's nearly drop-in.
⚙️ Github Repo: https://github.com/justalever/stripe_...
💻 Previously published at:
https://web-crunch.com/posts/stripe-c...
Timestamps:
00:00:07 - Intro
00:01:24 - Overview of Stripe and requirements
00:05:04 - Final project walk-through
00:10:00 - Kicking off the project
00:13:35 - Generating the pricing page controller and view
00:19:57 - Adding a Subscription model
00:29:40 - Setting up secret credentials and Stripe API keys
00:42:55 - Add Stripe Checkout session
00:48:27 - Add success page
00:55:50 - Adding a webhooks controller and routing
01:06:53 - Listening for Stripe events
01:34:30 - Add billing controller for Stripe Customer Portal
01:47:08 - Updating view to account for signed in and subscribed users
01:51:40 - Final words
Hi, My name is Andy Leverenz and I work as a product designer and developer. For fun, I design, code, and write. Check out my blog called Web-Crunch https://web-crunch.com where I publish design and development tutorials with the occasional vlog.
♥️ Sponsor me on GitHub
https://github.com/sponsors/justalever
☕️ Keep me awake. Buy me a coffee
https://www.buymeacoffee.com/webcrunch
📰 One-Click Subscribe:
https://www.youtube.com/user/webcrunc...
💎Ruby on Rails Course: HELLO RAILS
https://hellorails.io
💻 Check out the blog:
https://web-crunch.com
🦄 Check out my personal site:
https://justalever.com
🚀 Links:
Weekly Newsletter: https://digest.web-crunch.com/
Twitter: / webcrunchblog
Github: https://github.com/justalever
📘Check out my book on UX Design:
"LUXD: Learn User Experience Design"
https://web-crunch.com/products/luxd
📙 Check out my FREE book on Tumblr Theming:
"Pro Tumblr Theming"
https://web-crunch.com/products/ptt