#krisd-event-python

1 messages · Page 1 of 1 (latest)

tawny oasisBOT
vapid ginkgo
#

krisd-event-python

noble island
#

I looked at stack overflow forum and the common mistakes they pointed out like using webhook id instead of webhook secret or using webhook secret of some other webhook from dashboard etc does not apply in my case as I checked those things. So not sure what is going on wrong here.

vapid ginkgo
#

@noble island there are e common issues with the signature
1/ You use the wrong webhook secret. For example if you use the CLI it has its own secret
2/ Your code/framework is "tampering" with the raw payload we give you (parsing it as JSON, reformatting it, adding commas, etc). We need the exact raw payload for the signature verifivation to work
3/ You're not handling this as UTF-8

noble island
#

@vapid ginkgo Is the problem with stripe_signature or request_data? stripe_signature looks like a simple string like "t=1692216084,v1=0b8706d5c04****,v0=6eba0d08d43ad2*****"

vapid ginkgo
#

@noble island the problem would be with either webhook_secret or request_data

noble island
#

You are right, I changed the code as below and it seems to be working, thanks 🙂

vapid ginkgo
#

YAY