Scheduling infrastructure for absolutely everyone.
Fix/stripe payment intent succeded (#3044)
alannnc2362133b252e
diff --git a/.env.example b/.env.exampleindex 99b6d22a78f..486d312639d 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 optionalAPI_KEY_PREFIX=cal_diff --git a/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts b/apps/web/ee/pages/api/integrations/stripepayment/webhook.tsindex dfdb8badaad..1582deadd63 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);