Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: email bug dfix

Dillion Verma215fa7d15d75
diff --git a/app/api/webhooks/stripe/route.ts b/app/api/webhooks/stripe/route.ts
index f9795b8a..bbe9108a 100644
--- a/app/api/webhooks/stripe/route.ts
+++ b/app/api/webhooks/stripe/route.ts
@@ -70,7 +70,7 @@ export async function POST(req: Request) {
throw new Error("No email provided");
}
const customer = await upsertCustomer(
- session.customer_details.email,
+ session.customer_details.email.toLowerCase(),
session.customer_details.name || "",
);
await upsertPayment(session.payment_intent as string, customer.id);