使用Stripe webhooks和Rails

Cam*_*ate 6 payment ruby-on-rails webhooks stripe-payments

我已经根据Ryan Bates的railscast(http://railscasts.com/episodes/288-billing-with-stripe)成功构建了一个rails应用程序 - 然而,在railscast中他没有涵盖webhooks.我想知道在公共领域是否有任何好的例子来实现和使用webhook来管理已经创建的订阅计费.

任何想法/方向都会非常有用吗?

谢谢!

bar*_*ncw 10

这有一个很好的宝石:https://github.com/integrallis/stripe_event.

它看起来写得很好并且维护得很好.

在你的gemfile中你可以简单地添加一行 -

gem 'stripe_event'
Run Code Online (Sandbox Code Playgroud)

github上的自述文件中有明确的文档.