#nobody-webhook-signature

1 messages · Page 1 of 1 (latest)

turbid leaf
#

hmm - how are you testing your webhook?

steel flint
#

dumping the request headers from the webhook tester

turbid leaf
#

wdym by webhook tester?

#

are you using the stripe cli to send webhooks to your endpoint?

steel flint
#

yeah

turbid leaf
#

hmm

#

it might be worth manually sending a request to the endpoint with that header populated, to double-check if something is eating the header

#

if you're using mac/linux/WSL on windows, you can use curl

#

something like curl -X POST -H 'Stripe-Signature testtesttest' <your webhook URL here>

steel flint
#

yeah seemed to work to replace the header

#

't=1634519359,v1=424ed9dc93d24a20a98fc19ad4ec5d798f8bc27b2613d9835845ae97cbf2bf57,v0=87ac4d79029b69694742fb44554ada6a05f7bee872b765c38dd850dd0bb0ae6e' is what i seem to be getting on that header

turbid leaf
#

you're getting that log when you're testing with the curl command above?

steel flint
#

i get testtesttest when i test with above and i get the line above when using the actual webhook

turbid leaf
#

ah ok

#

wdym by with the actual webhook?

#

how are you sending the request in that case?

steel flint
#

stripe cli locally

turbid leaf
#

ok, so - it works with stripe cli locally

#

which environment is it not working in?

#

your production environment or smth?

steel flint
#

I think i misunderstood, I thought the secret would be that value in the header

turbid leaf
#

ah, no

#

the value in the header is the signature