#Vanity
1 messages ยท Page 1 of 1 (latest)
Hi there
Hi ๐
Can you give me more info on excatly what you are doing
You are using stripe listen --forward-to?
Yes
At least trying to do it
What command are you using to trigger?
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
Okay and what do you see in your Console after you trigger the event?
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
Can you show me a screenshot of your terminal where you are triggering the event?
Oh okay so you do see an event created?
Great
You are using an endpoint secret in that code. Is it specified above?
yes
Are you using the secret that the CLI is giving you?
yes
kk
Can you show your stripe listen command?
Okay so you are forwarding to 3000 but running your server on 4242, no?
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 :/
Can you run cURL -X POST http://localhost:4242/webhook in your Terminal
And let me know the output
Err actually sorry use curl -v -X POST http://localhost:4242/webhook
Yeah okay that looks fine ๐ค
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
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
Very strange
Of course
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?
Yeah. In your code above you have no log for the event
log out the paymentIntent
After you receive the event
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
Yep
ok tysm
Sure thing
have a good night