Skip to content

Instantly share code, notes, and snippets.

@Lulu117
Last active April 1, 2017 01:20
Show Gist options
  • Save Lulu117/03876168f5d7e74828003b0cd2d87b6f to your computer and use it in GitHub Desktop.
Save Lulu117/03876168f5d7e74828003b0cd2d87b6f to your computer and use it in GitHub Desktop.

Additional Resource

  • More links to docs, examples, and libraries

Hopefully this guide has given you a good overview of working with Stripe with Rails and the tips and hints I've given have been helpful. What follows is a list of links to additional resources that I've found very helpful to my Stripe implementations.

Documentation

  • Stripe's documentation is truly excellent. If some question isn't answered in this book that should be the first place you look.
  • Stripe Ruby API Docs: The Ruby API has its own documentation mini site
  • Stripe Ruby API code: The ruby API is open source and is a pretty good read. If you're looking to build a comprehensive HTTP API in Ruby you should definitely model it on this.

Examples

Libraries

  • Koudoku, a Rails engine for subscription billing with Stripe
  • StripeEvent, a Rails engine for Stripe event handling
  • StripeMock, a library for mocking and testing Stripe webhooks and API integrations
  • StripeTester, another library for testing Stripe webhooks
  • Devise, a Rails authentication library
  • CanCan, a Rails authorization library
  • jQuery Payment is a very useful set of jQuery functions for working with payment fields
  • Stripe Auto Paginate sets up automatic pagination for Stripe's API responses

Additional Reading

  • The Tangled Web is a guide to web security and how crazy the internet really is. Not directly applicable to a Stripe/Rails integration but it is a great read and is full of useful tips and explanations. Highly recommended.
  • Developer's Guide to PCI Compliant Web Applications goes into great depth about how to write a PCI compliant web application, and how Stripe makes it easier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment