#kavehh

1 messages · Page 1 of 1 (latest)

hard drumBOT
violet belfry
#

You should deploy your code to and get a public URL to set it in the Dashboard

brave violet
#

hey

#

I do have a public url

violet belfry
brave violet
#

yeah gotcha

#

what comes after the .com in my case?

#

heres my file structure

violet belfry
#

It depends on how you set up the webhook route

brave violet
violet belfry
#

I don't know how your server configures the webhook endpoint in your server

#

Have you tried to send an event to your webhook endpoint locally before?

brave violet
#

it was funky trying to get the stripe cli

#

i ended up in powershell

#

to be able to use it

#

so I was hoping to just skip the local tests

violet belfry
#

if it has worked before, then the endpoint should be the same when configuring it in Dashboard

#

it just differs in the domain

brave violet
#

gotcha yeah, but how do i know what to put after the .com

#

is it the route to my route.ts in my directory?

#

i had already made it once

#

with this route

#

this is the event i need

violet belfry
#

Webhook secret at local and the one configured on the Webhook endpoint are different. Did you update the webhook secret in your code?

brave violet
#

is it this?

#

the signing secret?

violet belfry
#

Yes! This is the one

brave violet
#

I did have it as that; let me try hard coding it in

#

would it tell me it works once i actually make a purchase?

#

i hard coded it in

#

and pressed resend

#

it still didnt work

#

let me try spending a dollar

#

it worked

#

woohoo

violet belfry
#

Yay! Great to hear that it works!

brave violet
#

thank you!

violet belfry
#

No problem! Happy to help 😄