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 1,303 people confidently earn more than $2 million dollars by getting their Stripe integration set up in hours, not days.
Dealing with security including PCI-DSS
How and why to use stripe.js and checkout.js
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.
Christian GencoCreator of dbinbox and textbooks please
Mastering Modern Payments was like a pool of cool refreshing water after I'd been traveling in the desert of obscurity for weeks. Unlike the API docs, or most blog posts I found on the topic, Pete thought this through three steps ahead of solving the problems I'd be having a few weeks or months after deployment. This will end up saving me an immeasurable amount of time and money.
Joel HooksCo-founder of Egghead.io
I'm fairly new to Rails and setting up billing had me flustered for weeks. I was stuck, spinning my wheels, not knowing what was the best route to take. Pete's book is a guiding light of common sense and practical application. Now I can setup billing with confidence, and more importantly, ship my product.
Matt VanderpolFounder of QAtab.com
Mastering Modern Payments is a fantastic resource for integrating Stripe billing with your Rails app. Pete does a great job of pulling together existing resources and blending them with his own experience to provide a clear, valuable guide for billing with Stripe.
Will BarkerWeb developer at Kindleman AU
I completely re-wrote my checkout using MMP's ideas. It's all looking much neater and more bullet proof now. The book gave me a lot of confidence my app wasn’t cowboy coded.
Though I was somewhat familiar with Stripe, and wrote a not-insubstantial online store that has processed hundreds of thousands of dollars in charges in the last couple of years, I was never happy with the code I wrote. It felt fragile, and I had no real clue how to do things I wanted to, like moving it into a worker.
I bought the book yesterday, and chewed through it pretty quickly, and it gave me the confidence to do some serious refactoring of my code. Today, I’ve made sweeping changes based on your work, including moving things to a state machine and using a worker to take care of the stripe calls. This is a significant win for me, and I did it in a fraction of the time that it would’ve taken me otherwise. So: thanks. Your book paid for itself about five times over already.
Anyway, thanks again. You made my week much more satisfying than I’d expected it to be. :D
— Tim S.
Books which I wish there was a time machine for: Integrating @stripe and Rails: http://t.co/T1NN4rIjb2
— Patrick McKenzie (@patio11) August 15, 2013
Pete Keen’s Mastering modern payments guide is pure gold if you want to integrate Stripe in your app. https://t.co/GMIbnrNmLO
— Javi Dolcet (@mussegam) April 15, 2014
Just bought Mastering Modern Payments: Using Stripe with Rails http://t.co/YkTXJMKtng via @zrail Perfect timing as Punchpass just launched!
— Chris Patton (@cgpat) September 3, 2013
2nd edition of Mastering Modern Payments: Using @stripe with @rails by @zrails is out, the first edition was awesome http://t.co/R2sQz6G0CI
— Chris Richards (@yellowfeatheruk) October 15, 2014
Gonna shill for @zrail's Mastering Modern Payments: the book is great and so are the follow-up emails. Well worth it https://t.co/h0LWZFIfdA
— Chris (@senorprogrammer) January 29, 2015
If you're trying to master @stripe I strongly suggest @modernpayments. Fantastic book. Used it to build @easelsplan http://t.co/nukhjCWj07
— Ely Greenberg (@elygreenberg) February 20, 2015
Check out @zrail's book on using Stripe with Rails. It's always nice to hear self-publishing success stories! https://t.co/WhegCcWM2V
— Michael Hartl (@mhartl) December 6, 2013
Highly recommend Mastering Modern Payments. It's going to save at least $3000+ http://t.co/jXbUm1OpMJ
— Gavin Miller (@gavingmiller) August 22, 2013
Love when I have problem & randomly stumble upon profile of someone who solved it! @zrail's guide to integrate Stripe http://t.co/NULvnh3873
— Lindsay (@ActivateLinds) April 27, 2014
Want to integrate Rails and Stripe? This is a really great guide for the task - http://t.co/zgxqzp5BCN #in
— Rob Bazinet (@rbazinet) August 15, 2013
One of the best resources on Rails + Stripe just got better with a V2 release https://t.co/VTcNX1beu0 Nice work @zrail!
— josh bradley (@airjoshb) October 20, 2014
Just bought this guide for using Stripe with Rails — looks awesome! http://t.co/SPFsaMDbra #rails #productdev
— Kyle Fox (@kylefox) August 15, 2013
Very highly recommend @zrail's http://t.co/BlwEFM23KI - everything you could ever want to know for making Stripe work with your system!
— DashingD3js.com (@DashingD3js) February 18, 2015
If you're doing rails and are thinking about integrating @stripe I can highly recommend this ebook. https://t.co/ZfTBiJjzDO
— Steven Van Bael (@vbsteven) October 22, 2013
Reading @zrail’s excellent Mastering Modern Payments Using Stripe and Rails. Thanks for my time back Pete :> http://t.co/613rB4IcG6
— Joel Hooks (@jhooks) October 5, 2013
Knowing what I now know about payment processing, this looks like a must read for anyone using Rails and Stripe. https://t.co/TTBGzefLNY
— Garrett Dimon (@garrettdimon) March 28, 2014
Great book for rails developers, pick up the version this Wednesday...https://t.co/o0UKO9nwYw
— Fritz Rodriguez Jr. (@fritzsbm) October 13, 2014
I take that back... I hate @jhooks He writes and I start buying books Just picked up Mastering Modern Payments http://t.co/Pm6mJxFUqA
— Lukas Ruebbelke (@simpulton) October 31, 2013
John WilsonFront-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.