#fonikoagouriog_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1280458623964811317
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Attaching these images for better explanation
Hi
This is the purchasing as a business checkbox that i am referring too, as well as the VAT and business name fields. These are the things i want to make mandatory to be filled somehow
When creating a Checkout you can just specify to collect the VAT or not, but not making it mandatory:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-tax_id_collection
One workaround, is to configure a custom_field for your Checkout Sesison and make it mandatory:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-custom_fields-optional
hmm okay so it is not possible to have anything more than what i have already implemented with the checkbox etc
Can i have the fields appear in the checkout without the checkbox? So that they are more clear during checkout. Or do i have to have the checkbox at all times first to be clicked, and then the fields appear?
Can i have the fields appear in the checkout without the checkbox?
Yes, when you use custom field you get the field directly
and if i create a custom field in my checkout and collect the VAT that way, can i map the value of the input field to the VAT ID of Stripe?
and skip the checkbox entirely i mean
so i can have it then be mandatory
Yes you can update the Customer's tax Id and map it with the field you collected by the Checkout Custom field:
https://docs.stripe.com/api/customers/object#customer_object-tax_ids
great, thank you!!
a final question, if i were to collect tax ids from different countries using a custom field. Would i need to have a different field for each country or a different field specifying the country along with the one that is for the VAT ID input?
No, consider custom fields as a field for any type of Data there is no correlation actually...