🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Add tax ID collection for EU customers in checkout session
Bill Yang169d1f305d2a
diff --git a/server/src/api/stripe/createCheckoutSession.ts b/server/src/api/stripe/createCheckoutSession.tsindex 99e5c0e0b..64509c03d 100644--- a/server/src/api/stripe/createCheckoutSession.ts+++ b/server/src/api/stripe/createCheckoutSession.ts@@ -120,6 +120,8 @@ export async function createCheckoutSession(customer_update: {address: "auto",},+ // Allow EU customers to provide their tax ID (VAT number)+ tax_id_collection: { enabled: true },});// 6. Return the client secret for embedded checkout