diff --git a/.env.example b/.env.example index 99b6d22a78..486d312639 100644 --- a/.env.example +++ b/.env.example @@ -86,6 +86,7 @@ NEXT_PUBLIC_STRIPE_PRO_PLAN_PRODUCT= NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE= NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE= NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE= +STRIPE_WEBHOOK_SECRET= # Use for internal Public API Keys and optional API_KEY_PREFIX=cal_ diff --git a/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts b/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts index dfdb8badaa..1582deadd6 100644 --- a/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts +++ b/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts @@ -187,10 +187,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) const event = stripe.webhooks.constructEvent(payload, sig, process.env.STRIPE_WEBHOOK_SECRET); - if (event.account) { - throw new HttpCode({ statusCode: 202, message: "Incoming connected account" }); - } - const handler = webhookHandlers[event.type]; if (handler) { await handler(event);