enable tax id collection

This commit is contained in:
Karol Wypchlo 2021-09-29 15:50:55 +02:00
parent f42a3a9c20
commit d9fe4b1591
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ export default async (req, res) => {
customer: customer.id, customer: customer.id,
client_reference_id: user.sub, client_reference_id: user.sub,
allow_promotion_codes: true, allow_promotion_codes: true,
tax_id_collection: { enabled: true },
success_url: `${process.env.SKYNET_DASHBOARD_URL}/payments?session_id={CHECKOUT_SESSION_ID}`, success_url: `${process.env.SKYNET_DASHBOARD_URL}/payments?session_id={CHECKOUT_SESSION_ID}`,
cancel_url: `${process.env.SKYNET_DASHBOARD_URL}/payments`, cancel_url: `${process.env.SKYNET_DASHBOARD_URL}/payments`,
}); });