#๐ช๐ฆ
1 messages ยท Page 1 of 1 (latest)
just a simple function right now to see how it all works
this is the routing
I'm using the cli and as you can see it gets there
and the sig is also there
You know for sure that the signature is in the event?
ah this is a common issue with express frameworks
basically, some express middleware is modifying your Event request POST body
so what you want to do is:
trying one of the many solutions in this thread to see what works for how your endpoints are set up: https://github.com/stripe/stripe-node/issues/341#issuecomment-818708675
basically, you have to specifically pass the raw event to your webhook endpoint, and let express do its thing to requests to other endpoints
okay thanks
figured it out thank you
ooh just another question
I am unsure if this will make sense but uh
if the CLI is forwarding to my local
does that mean that webhooks triggered by the test environment on STRIPE will also trigger my local host
or can I only trigger with stripe trigger <event>
so for example
I cannot trigger payout webhooks from the CLI
does that mean that webhooks triggered by the test environment on STRIPE will also trigger my local host
if you're forwarding from CLI, then test events generated by any requests you make to Stripe should still reach your endpoint yes
okay good, was hoping for that thank you