🛂 (billing) Enable tax id and billing address collection
This commit is contained in:
@@ -77,6 +77,10 @@ export const createCheckoutSession = authenticatedProcedure
|
|||||||
mode: 'subscription',
|
mode: 'subscription',
|
||||||
metadata: { workspaceId, plan, additionalChats, additionalStorage },
|
metadata: { workspaceId, plan, additionalChats, additionalStorage },
|
||||||
currency,
|
currency,
|
||||||
|
tax_id_collection: {
|
||||||
|
enabled: true,
|
||||||
|
},
|
||||||
|
billing_address_collection: 'required',
|
||||||
automatic_tax: { enabled: true },
|
automatic_tax: { enabled: true },
|
||||||
line_items: parseSubscriptionItems(
|
line_items: parseSubscriptionItems(
|
||||||
plan,
|
plan,
|
||||||
|
|||||||
Reference in New Issue
Block a user