Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Stripe webhooks with Rails

I have successfully built out a rails app as per Ryan Bates' railscast (http://railscasts.com/episodes/288-billing-with-stripe) - However, in the railscast he doesn't cover webhooks. I was wondering if there are any good examples in the public domain of implementing and using webhooks to manage a subscription billing that has been created.

Any thoughts / direction would be super helpful?

Thanks!

like image 806
Cam Norgate Avatar asked Feb 21 '12 03:02

Cam Norgate


1 Answers

There's a nice gem for this: https://github.com/integrallis/stripe_event.

It looks to be well written and maintained.

In your gemfile you can simply add the line -

gem 'stripe_event'

There's clear doc in the readme on github.

like image 58
barancw Avatar answered Sep 20 '22 02:09

barancw