#castle
1 messages · Page 1 of 1 (latest)
You'll need to use the Tax Calculations and Tax Transactions APIs to use Stripe Tax with custom payment flows that use Elements: https://stripe.com/docs/tax/custom
Sorry, I meant for collecting the customers tax IDs
https://stripe.com/docs/invoicing/customer/tax-ids
For this case, we need to create our own UI components to collect the tax ID type (using a dropdown for the list of different possible enum values for the tax type) and value
Ah gotcha, thanks for clarifying
We have the automatic tax calculations set up for US based customers using the country code and zip code of the Stripe payment element. I was curious what was the recommended way of collecting these values (tax ID number and type) if we don't use the hosted checkout page. Seems like we need to have our own two custom components and go through the Stripe API to add/validate these values, but wasn't sure if there was a simpler built in way to handle this. (like using the Stripe customer's address to automatically choose the taxID type)
Got it. No, there's no automated way to do this at the moment. Our recommendation at this time is to create your own input field for collecting a tax ID from a customer, and then using this value to create a TaxID object server side
Got it, just to verify, in addition to the tax ID number we also need to collect the tax ID type from the customer since that is required when creating the TaxID object on the user
Yep, that's right. Most countries have a single tax ID type but, for those that don't, you can prompt customers for the type or have them select from a list of possible types