-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a hook to run some code before any Stripe event callbacks #188
Comments
Here's a monkey-patch I'm using for now if anyone is interested!
UPDATE: Still works in 2.0.0 |
UPDATE: I'm still using this monkeypatch, and it's still working fine on the latest version (2.4.0). I don't mind it too much but would be cool to have an officially supported way to do this |
Hi @ndbroadbent thanks for the suggestion. I like the idea! However I don't have the bandwidth to work on this from scratch. If you (or anyone else!) would like to create a PR for this it stands a fair chance of getting merged. |
Sure, I would be happy to look into this! I will open a PR to get some feedback |
Hi @tansengming, my company is taking part in Hacktoberfest this year and we're looking for some repos to contribute to. I remembered this issue and would like to create a PR! I was just wondering if you could please add the |
@ndbroadbent that's a great idea! Thanks for helping out! I just added the topic. |
Hello,
I saw that the
stripe.event
callback is run at the very end:It would be very useful if I could also run a callback at the beginning. In my case, I want to add the event ID as extra context for my Sentry error reports, in case one of my event handlers crashes with an error. e.g.
This would make it much easier for me to look up the Stripe event in the Stripe web UI, so I can see what event data caused the error to happen.
Do you have any feedback or suggestions for this idea, or any thoughts on how this could be implemented?
The text was updated successfully, but these errors were encountered: