I am trying to test a stripe webhook for subscription trial ending. When I go to send the test even to my webhook receiving route I get error 302
. I am using a middleware called stripe-webhook-middleware. My route looks like this:
app.post('/stripe/events',
stripeWebhook.middleware,
stripeEvents
);
I know that route goes against what they docs say but I did get it directly from the package creator. So it should work, then I have the stripe-events.js from the package. I am just adding in a console.log
to the route to find the correct data I need.
I tried different webhooks and all give the same error, it has to be in how I have it set up. I hope anyways.
Edit **
I have also done a new route that is just a basic post route with a console.log
and still getting the 302 error. What could possible causes be? I can't post a github because of a credential I accidentally leaked.
curl -IvL http://localhost:4000/stripe/events
– Sitwell