How to set up both Account and Connect webhooks on Dj-stripe
See original GitHub issueHi,
I’m using dj-stripe==2.5.1
I’ve recently ran into an issue when trying to listen to both Connect and Account webhook events. According to this documentation: one would have to create two webhook instances, one with connect=True
and another with connect=False
so both types would be listened.
Issue is: How can I set up two webhook endpoints, with two different secrets, with dj-stripe? From what I gather from the docs, we can only set one whsec_xxxx
value.
One possible solution I thought of, was to leave the DJSTRIPE_WEBHOOK_SECRET
to an empty value so I could receive all the events from both webhooks.
I am writing this question to see if there is an alternative that will still allow me to check the signatures of the events, or if for now I should just forego event signature checking just to achieve desired behaviour.
Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Please try dj-stripe 2.7.0a0 which contains the aforementioned changes.
@oitsl if you want, work is happening on the dev/webhooks-refactor branch. You can already use the django admin to create new webhooks. You may have to do some manual surgery to get existing endpoints into the db.