From 2e8f2d81c6f34b1ec32bebb28edbc993a755d734 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 24 Feb 2023 16:35:04 +0100 Subject: [PATCH] :passport_control: (billing) Enable tax id and billing address collection --- .../features/billing/api/procedures/createCheckoutSession.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/builder/src/features/billing/api/procedures/createCheckoutSession.ts b/apps/builder/src/features/billing/api/procedures/createCheckoutSession.ts index d224de25a..d7c7da24a 100644 --- a/apps/builder/src/features/billing/api/procedures/createCheckoutSession.ts +++ b/apps/builder/src/features/billing/api/procedures/createCheckoutSession.ts @@ -77,6 +77,10 @@ export const createCheckoutSession = authenticatedProcedure mode: 'subscription', metadata: { workspaceId, plan, additionalChats, additionalStorage }, currency, + tax_id_collection: { + enabled: true, + }, + billing_address_collection: 'required', automatic_tax: { enabled: true }, line_items: parseSubscriptionItems( plan,