diff --git a/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts b/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts index fbd2fc78..2124797f 100644 --- a/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts +++ b/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts @@ -10,6 +10,7 @@ import { CalendarEvent } from "@calcom/types/Calendar"; import { IS_PRODUCTION } from "@lib/config/constants"; import { HttpError as HttpCode } from "@lib/core/http/error"; +import { sendScheduledEmails } from "@lib/emails/email-manager"; import { getTranslation } from "@server/lib/i18n"; @@ -126,6 +127,8 @@ async function handlePaymentSuccess(event: Stripe.Event) { }); } + await sendScheduledEmails({ ...evt }); + throw new HttpCode({ statusCode: 200, message: `Booking with id '${booking.id}' was paid and confirmed.`,