tansengming / stripe-rails

A Rails Engine for integrating with Stripe
MIT License
753 stars 123 forks source link

Support for subscription paused event #227

Closed phantomwhale closed 3 weeks ago

phantomwhale commented 8 months ago

I've been trying to capture the customer.subscription.paused event in my codebase, but looking over the errors / source code I believe it's not supported in the stripe-rails gem currently?

For what it's worth, I also couldn't trigger a test webhook for this using the stripe CLI's trigger command, so I am guessing it's a fairly recent addition to the list of stripe webhooks? I can see data coming in for this webhook to my local rails app though, as well as see this webhook coming through via the stripe CLIs test-mode listener, so I'm pretty sure it's a valid webhook to be handled.

tansengming commented 7 months ago

@phantomwhale you're right it probably isn't supported right now! Feel free to post a PR for it if you'd like, it should look something like this https://github.com/tansengming/stripe-rails/pull/218

I swear I'll be quicker to respond to the PR =) I've been swamped the last couple of weeks.

4nd2in commented 1 month ago

I just opened a PR, including support for the customer.subscription.paused callback -> #231