I tried that initially, but i get: ```js const { request, env } = context; const rawBody = await re

I tried that initially, but i get:
const { request, env } = context;

const rawBody = await request.text()
const stripeSignature = request.headers.get('stripe-signature')

const event = await stripe.webhooks.constructEventAsync(rawBody, stripeSignature, env.STRIPE_WEBHOOK_SECRET)


Err:
No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe?             ╮
 If a webhook request is being forwarded by a third-party tool, ensure that the exact request body, including JSON formatting and new line style, is preserved.
Was this page helpful?