#moanie-webhook-signatures

1 messages · Page 1 of 1 (latest)

small arch
#

Give me a few minutes and I'll take a look!

#

Quick question - how are you testing this out? Through the CLI?

#

And endpoint_secret matches the secret that is outputted by the CLI (when you run stripe listen) correct?

#

Can you print out sig_header and json_data and send over what they look like?

#

yup - that works for me!

#

Do you know the specifics about what request.content.read() is doing? Does it do any modification of the raw request body?

#

Let me do some more digging - also one more quick question

#

Is this something you see fail on all webhook events, or just some?

#

One more quick test - can you also print unparsed_content?

#

Can you try changing your code to this:
event = stripe.Webhook.construct_event(unparsed_content, sig_header, endpoint_secret)

#

👍 Glad it worked!