From d9fe4b159163b47343557044295a399a7b39113e Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 29 Sep 2021 15:50:55 +0200 Subject: [PATCH] enable tax id collection --- packages/dashboard/src/pages/api/stripe/checkout.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/dashboard/src/pages/api/stripe/checkout.js b/packages/dashboard/src/pages/api/stripe/checkout.js index 879d8efd..389c9978 100644 --- a/packages/dashboard/src/pages/api/stripe/checkout.js +++ b/packages/dashboard/src/pages/api/stripe/checkout.js @@ -47,6 +47,7 @@ export default async (req, res) => { customer: customer.id, client_reference_id: user.sub, allow_promotion_codes: true, + tax_id_collection: { enabled: true }, success_url: `${process.env.SKYNET_DASHBOARD_URL}/payments?session_id={CHECKOUT_SESSION_ID}`, cancel_url: `${process.env.SKYNET_DASHBOARD_URL}/payments`, });