integrallis / stripe_event

Stripe webhook integration for Rails applications.
https://rubygems.org/gems/stripe_event
MIT License
841 stars 107 forks source link

Disable retrieval? #61

Closed julien51 closed 8 years ago

julien51 commented 8 years ago

Is there any way to disable the retrieval of events when in tests/development? Some events are not easy to trigger from the Stripe interface like "customer.subscription.trial_will_end" using actual test data...

rmm5t commented 8 years ago

Is there any way to disable the retrieval of events when in tests/development?

Sure, but you're going to have to use your own custom EventRetriever to change the specific behavior in your development environment.

Of course, you should be able to mock this away just fine for your test environment. I use the stripe-ruby-mock to help with some of this while unit testing my stripe_event subscriptions.

rmm5t commented 8 years ago

Btw, please take any further questions like this to a site like StackOverflow. GitHub Issues are best reserved for discussing feature requests and bug reports.