#RichStoneIO - stripe_ruby_mock

1 messages · Page 1 of 1 (latest)

dusty sedge
#

One moment while I catch up. A ton of threads

runic fog
#

no worries, I actually wanted to open up a thread, but it seems like I can't 🙂

#

I'll just drop my stuff here

#

I guess stripe_ruby_mock is kind of the way to go to mock out objects for tests in Rails apps?

#

My actual issue though:

I'm trying to load an event with StripeMock, but I get this error:

Loading development environment (Rails 5.2.6)
irb(main):001:0> incoming_event = StripeMock.mock_webhook_event("payment_intent.succeeded")
Traceback (most recent call last):
        1: from (irb):1
StripeMock::UnsupportedRequestError (Unsupported webhook event `payment_intent.succeeded` (Searched in ./spec/fixtures/stripe_webhooks/))

It's a defined type in their lib and it works for me with other types of events like charge.refunded...

noble jackal
#

If so, that's a third-party library that we have little knowledge of I'm afraid! I'd recommend filing an issue on the GitHub repo