TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Stripe Tester - Gem To Test Stripe Webhooks Locally

18 pointsby luaybsalmost 12 years ago

5 comments

fhirzallalmost 12 years ago
Feras from buttercloud here (author is my co-worker).<p>We have a complex application that heavily interacts with webhooks - that&#x27;s what prompted us to create StripeTester. We can now easily spec out the interactions and set expectations when a webhook is received. A side benefit is that this can be used without connectivity and really cleans up our test suite.<p>Previously, we used Requestbin for manual webhook testing, and made heavy use of Mocha for stubbing. This required us to maintain fixtures and test data to simulate Stripe&#x27;s.<p>There&#x27;s also <a href="https://github.com/mindeavor/stripe-ruby-mock" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mindeavor&#x2F;stripe-ruby-mock</a> that provides some testing hooks (although repo says it&#x27;s incomplete). We&#x27;re planning on keeping the webhook data up-to-date when Stripe releases newer versions.
sidchillingalmost 12 years ago
What are the values in the body that is sent in a webhook? Are those dummy values.<p>Mostly, in response of a Stripe webhook, one would want to do something based on the id. For instance, for a charge failed event, one would like to retrieve the customer for which the charge has failed and would retrieve the customer details from Stripe. Dummy values will not help here.<p>Just thinking aloud, how would one use this? I have been in need for something to test Stripe webhooks.
评论 #6102048 未加载
aculveralmost 12 years ago
Thank you so much! I maintain a gem for drop-in subscription support which integrates with Stripe[1], and improving test coverage and implementing more robust webhooks support has been on my to-do list for a few months now. Seeing this on HN is like receiving a pull request for half of that work. Thanks, again! :-)<p>[1] <a href="http://github.com/andrewculver/koudoku" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;andrewculver&#x2F;koudoku</a>
jpadilla_almost 12 years ago
This is very awesome and super useful! When you rely heavily on Stripe events it can get out of control. Stripe needs a doc with real world scenarios and what events get called. I&#x27;m definitely going to try and port this to Python.
评论 #6102170 未加载
nayefmuhiaralmost 12 years ago
Finally someone made this, great work