#Vanity

1 messages ยท Page 1 of 1 (latest)

lament dustBOT
light minnow
#

Hi there

limpid drum
#

Hi ๐Ÿ™‚

light minnow
#

Can you give me more info on excatly what you are doing

#

You are using stripe listen --forward-to?

limpid drum
#

Yes

light minnow
#

Okay

#

And then you are triggering events via the CLI?

limpid drum
#

At least trying to do it

light minnow
#

What command are you using to trigger?

limpid drum
#

because event does not fire

#

as the documentation says

#

start the server with the endpoint of the webhook -> open the cli -> login -> forward to serverip:port/endpoint -> fire event

light minnow
#

Okay and what do you see in your Console after you trigger the event?

limpid drum
#

nothing

#

that's the problem

#

it seem like the event doesn't fire at all

#

or in part

#

because i see a log on stripe logs

light minnow
#

Can you show me a screenshot of your terminal where you are triggering the event?

#

Oh okay so you do see an event created?

limpid drum
#

wait

#

i'll send you some screenshot

#

so that's easier to understand

light minnow
#

Great

limpid drum
#

The code

#

Event log on website

light minnow
#

You are using an endpoint secret in that code. Is it specified above?

limpid drum
#

yes

light minnow
#

Are you using the secret that the CLI is giving you?

limpid drum
#

yes

light minnow
#

kk

limpid drum
#

wait

#

more screen

#

and that's in real time firing event

light minnow
#

Can you show your stripe listen command?

limpid drum
#

yes of course

light minnow
#

Okay so you are forwarding to 3000 but running your server on 4242, no?

limpid drum
#

nono i changed

#

it's just a different screenshot

#

but even if i select the correct port

#

event doesn't fire at all

#

and i fired with the cli lot's of times trying with different settings

#

but nothing happens :/

light minnow
#

Can you run cURL -X POST http://localhost:4242/webhook in your Terminal

#

And let me know the output

limpid drum
#

yes of course

#

one moment

light minnow
#

Err actually sorry use curl -v -X POST http://localhost:4242/webhook

limpid drum
#

oh yeh

#

and that's the correct one

light minnow
#

Yeah okay that looks fine ๐Ÿค”

limpid drum
#

yeh but it's so strange that the local webhook endpoint doesn't show at least a console log

#

let me modify the endpoint real quick and retry

#

oh ok

#

so now it works

light minnow
#

Huh

#

What did you change?

limpid drum
#

literally tried to re paste and changing to the correct port again

#

put a console log at the start

#

and tried to fire

#

seem to be working now

light minnow
#

Very strange

limpid drum
#

at this point

#

can i ask you just one question

#

?

light minnow
#

Of course

limpid drum
#

now i'm testing local

#

and firing the event it only shows the log i put at the start of the endpoint

#

but does not show me anything about payment info

#

and stuff like that

#

is it normal?

light minnow
#

Yeah. In your code above you have no log for the event

#

log out the paymentIntent

#

After you receive the event

limpid drum
#

tysm

#

last question

#

to be sure that i read everything right

#

after being sure that the webhooks works fine and has no problems, i need to make a custom endpoint on stripe website with my gcloud domain

#

and then when someone buys the event should trigger by itself

light minnow
#

Yep

limpid drum
#

ok tysm

light minnow
#

Sure thing

limpid drum
#

have a good night