#ponta | NFTHashi
1 messages · Page 1 of 1 (latest)
hello! 308 http status code means a redirect : https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308
The way to resolve this is usually just to replace the URL in your dashboard webhook settings with the one that your site is redirecting Stripe to currently
I am not setting any URL to my dashboard yet but do I have to ?
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
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]
is localhost:3000/api/stripe-webhook redirecting to another route?
no, currently it's just returning 200 response
does the request even hit your code out of curiosity?
I don't think so. console.log() doesn't show anything