#teriyaki229
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- teriyaki229, 1 hour ago, 12 messages
Hello
Hello
Okay so yeah your signature is present
Have you logged out the body?
Can you show me the full error you received?
And can you provide an Event ID that you tested with?
how would i do that..?
let me log the body though
What did console.log(req.headers) console.log(req.headers['stripe-signature']) output?
How are you testing your endpoint?
first line outputted the first ts file i sent
and the second one outputted undefined
by creating new payment method in billing portal
console.log(req.body)
returns:
ReadableStream { locked: false, state: 'readable', supportsBYOB: false }
I'm not very familiar with Next.JS tbh, but I'd take a look at https://stackoverflow.com/questions/75828724/i-am-trying-to-setup-of-a-webhook-using-stripe-and-nextjs-13-2-3
Looks like you might want something like const sig = req.headers.get('stripe-signature') instead?
that is not possible with NextApiRequest and the example followed that..
but yes i will try that
i will let you know in a minute after trying the stackoverflow solution and yours combined
and let you know in a minute
please hold the thread
Sure