From bf7e24cf119902aad7e6de59d4839afff2dbb6b7 Mon Sep 17 00:00:00 2001 From: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com> Date: Thu, 10 Apr 2025 13:26:01 +0530 Subject: [PATCH] fix: stripe issue for customers with existing stripe ID (#5308) --- apps/web/modules/ee/billing/api/lib/create-subscription.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/modules/ee/billing/api/lib/create-subscription.ts b/apps/web/modules/ee/billing/api/lib/create-subscription.ts index 64681c19e5..4c33229ca0 100644 --- a/apps/web/modules/ee/billing/api/lib/create-subscription.ts +++ b/apps/web/modules/ee/billing/api/lib/create-subscription.ts @@ -54,6 +54,9 @@ export const createSubscription = async ( payment_method_data: { allow_redisplay: "always" }, ...(!isNewOrganization && { customer: organization.billing.stripeCustomerId ?? undefined, + customer_update: { + name: "auto", + }, }), };