See the code behind this demo!

Checkout collect tax ID

Stripe Checkout now allows you to collect customer Tax IDs. Read more here


Console

> Ready ...

                                      
  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`,
  });
          
        

Experiment and learn

Make copies, remix, change and learn how to play with this tinydemo.


Any questions?

Reach out to us on any of our contact channels: