:wave: I can not get to pass the stripe `webhook` ...
# help
k
👋 I can not get to pass the stripe
webhook
endpoint validation. I have secret and I receive the stripe-signature, still getting 400. This might has todo with the
event.body
?
Copy code
try {
    if (!sig || !endpointSecret) return { statusCode: 400 };
    e = stripe.webhooks.constructEvent(
      event.body as string,
      sig as string,
      endpointSecret
    );
  } catch (err) {
    return { statusCode: 400 };
  }
f
Hey @Karolis Stulgys, just to clarify, u mean Stripe’s API is returning 400 for u?
k
Nope. I get into catch block all the time