Build a rock solid Stripe integration from day one.
There are lots of moving pieces and no one place to see a complete implementation. You've probably asked yourself a million questions:
Am I making charges correctly?
What happens to errors?
Am I dealing with webhooks properly?
What are the right gems to use?
Am I PCI compliant? What is PCI, anyway?
Simple tutorials only go so far. Blog posts from years ago are easy to find, but are they still correct? API documentation doesn't help if you don't know what you're looking for.
Mastering Modern Payments: Using Stripe with Rails distills the experience of building dozens of Stripe integrations into one concise, comprehensive guide. From first chapter to last, MMP is packed with advice and examples:
Basic Integration guides you through the most basic Stripe billing system possible and prepares your app for the rest of the book.
Security and PCI Compliance guides you through the murky waters of the Payment Card Industry Data Security Standards and how they apply to Stripe. It also talks about security scanners and code analysis tools you can use to validate your code isn't susceptible to things like cross-site-scripting attacks and SQL injections.
Custom Payment Forms shows you how to get away from Stripe Checkout and build your own payment forms, your way, with your own framework.
State and History teaches you why and how you should build your application with explicit state machines. It also walks through why keeping audit logs of the changes to your models is so very important, and how you can get them with just one line of code.
Handling Webhooks describes how to handle Stripe's webhook events to alert you of errors, perform vital upkeep within your application, and send receipts to customers.
Background Workers describes how to communicate with Stripe asynchronously. The Internet is a wild, wacky place, and your application needs to be able to recover from any number of errors, both internal and external.
Subscriptions walks through your options for building recurring billing into your application, along with advice about emailing your customers and integrating analytics services.
Connect and Marketplaces adds onto the basic integration again, this time allowing your app to sell things on your users' behalf with Stripe Connect and send them payments with Transfers.
MMP has helped a thousand people just like you build their Stripe integrations with confidence, billing customers sooner and more reliabily.
Dealing with security including PCI-DSS
How and why to use
How to build custom payment forms
How to set up Rails to keep an audit trail for you
How to handle subscription billing
How to create marketplaces with Connect and Transfers
How to process payments using background workers
How to email your customers effectively
How to test your Stripe integration
And much, much more
Put your email address in to receive a five part email course all about Stripe and Rails, including the first three chapters of MMP.No spam. Unsubscribe at any time.
Front-end at Envy Labs
Mastering Modern Payments is helping me out so much right now. I'm already farther along than with any other resource.
That depends on your budget. I strongly suggest the Complete Package because the code is very helpful for understanding the book. That said, the Basic Package has a ton of value all by itself.
Absolutely! Just reply to your confirmation email that you'd like to upgrade and I'll set it up for you.
Stripe and Rails both move fast. As they do, I send out periodic updates to the book and the sample application.
No problem. Just send the amount that corresponds to the version you want to
The book uses Rails 4.2.0, Ruby 2.2.0, and Stripe 1.17.0.
The current version of the guide is the product of over a year of editing and conversations with dozens of developers just like you. If you're a Rails developer integrating Stripe, this is the guide for you. That said, if you feel like you haven't gotten your money's worth, simply send me an email for a full 100% money back guarantee.