Stripe Checkout now allows you to collect customer Tax IDs. Read more here
const session = await stripe.checkout.sessions.create({
mode: "payment",
payment_method_types: ["card"],
line_items: [
{
price: "price_1J4mNoAPEf9EarUkxikcsTXa",
quantity: 1
}
],
tax_id_collection: {
enabled: true
},
success_url: `${process.env.BASE_URI}/success`,
cancel_url: `${process.env.BASE_URI}/cancel`,
});
Make copies, remix, change and learn how to play with this tinydemo.
Reach out to us on any of our contact channels: