#.hendrid
1 messages · Page 1 of 1 (latest)
hi
hey there, you're trying to use Stripe CLI to stripe listen and forward to a local endpoint?
yes
Ok, and where are things not doing what you expect?
look the dashboard
but, doesn't in to my local end-point
the webhook don't call my local end-point, that is the problem
any idea?
I see your stripe trigger call but are you also using stripe listen somewhere?
I can see from the dashbaord screenshot that you have no hosted endpoints configured, so without using stripe listen there would be no way for stripe to get events to you
the webhook, I need test my changes with the webhook
Which part, specifically? Signature validation? Delivery?
I need execute a command handler with the webhook
so I need the webhook call my endpoint
Ok, sure, i get that
But unless you have a public hosted endpoint, the way this is done is using CLI listen to forward events locally
so, I need a extra configuration, public my endopoint with ngrok or something
You can use ngrok, sure
Or you can forward via teh CLI: https://stripe.com/docs/webhooks#local-listener
Check that out, it shows how to do what you need
not working! What I doing wrong?
Just making sure we're on the same page here: you're trying to test a local endpoint using the CLI to forward events, correct?
ie, you are calling stripe listen in a temrinal and using forward-to to send the events to your local dev endpoint to test?
Are you running stripe listen in your terminal?
What do you mean i shot it down?
You need to keep stripe listen running in one terminal for this to work
and then you can call stripe trigger in another terminal to generate test events
Done!I
you'll then see those on the listen terminal output
I feel stupid
Yeah
Nice!
I type error, so sorry @fathom meadow