#Senhor

1 messages · Page 1 of 1 (latest)

fervent sailBOT
flint moth
#

hi

tranquil lodge
#

hey there -- this can be a tricky thing to get right, but the key is ensuring you provide the raw request body to constructEvent -- typically we see people using Express which is often configured to automatically parse json responses and utate the body

flint moth
#

this is how express is set up

#

this is how i construct event

#

in the logs i see that raw body is "simply" a strigified body i guess

tranquil lodge
#

OK, have you tried logging the signature and whsec values to ensure you're providing the values you expect?

flint moth
#

yes

#

only signatures

#

didn't think about whsec

#

i'll try now

#

this solved it, i was using dev whsec and not local. Thanks you guys of Stripe support are the best. Always on point, super quick and professional on ping.
Thanks for your help and have a good day

tranquil lodge
#

nice! and, you're welcome

#

sorry for the delay, lots of people on right now!