#.hendrid

1 messages · Page 1 of 1 (latest)

stone cobaltBOT
willow zodiac
#

hi

fathom meadow
#

hey there, you're trying to use Stripe CLI to stripe listen and forward to a local endpoint?

willow zodiac
#

yes

fathom meadow
#

Ok, and where are things not doing what you expect?

willow zodiac
#

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?

fathom meadow
#

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

willow zodiac
#

for testing I need that?

#

I try but I can't

#

do you mean Add an endpoint

fathom meadow
#

Let's take a step back

#

What are you trying to test

willow zodiac
#

the webhook, I need test my changes with the webhook

fathom meadow
#

Which part, specifically? Signature validation? Delivery?

willow zodiac
#

I need execute a command handler with the webhook

#

so I need the webhook call my endpoint

fathom meadow
#

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

willow zodiac
#

so, I need a extra configuration, public my endopoint with ngrok or something

fathom meadow
#

You can use ngrok, sure

#

Check that out, it shows how to do what you need

willow zodiac
#

not working! What I doing wrong?

fathom meadow
#

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?

willow zodiac
#

Dont send the event to mi local dev endpoint

fathom meadow
#

Are you running stripe listen in your terminal?

willow zodiac
#

you shot down my local listener?

fathom meadow
#

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

willow zodiac
#

Done!I

fathom meadow
#

you'll then see those on the listen terminal output

willow zodiac
#

I feel stupid

fathom meadow
#

Ok, what's happening now?

#

Is it working?

willow zodiac
#

Yeah

fathom meadow
#

Nice!

willow zodiac
#

I type error, so sorry @fathom meadow