#ponta | NFTHashi

1 messages · Page 1 of 1 (latest)

undone mauveBOT
blissful shadow
stark halo
#

I am not setting any URL to my dashboard yet but do I have to ?

blissful shadow
#

ah, then when forwarding events to your endpoint via the CLI, it should be to the one that it is redirecting to

#

in short, Stripe doesn't support redirects for webhooks

stark halo
#

sorry I still don't get it.

I'm running

stripe listen --forward-to localhost:3000/api/stripe-webhook

and

stripe trigger checkout.session.completed

in terminal and getting

[308] POST http://localhost:3000/api/stripe-webhook [evt_1LzyVQDh9iB9gv9LOfabavEh]

blissful shadow
#

is localhost:3000/api/stripe-webhook redirecting to another route?

stark halo
#

no, currently it's just returning 200 response

blissful shadow
#

does the request even hit your code out of curiosity?

stark halo
#

I don't think so. console.log() doesn't show anything

blissful shadow
#

can you share how you've defined the route for /api/stripe-webhook in your server code?

#

also, what happens if you try with a trailing slash stripe listen --forward-to localhost:3000/api/stripe-webhook/