#jo_best-practices
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/1361601567496736778
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- jo_best-practices, 17 hours ago, 14 messages
Hi! Can I confirm what do you mean by auto-tax feature?
Not sure if that is what it is called. Basically using stripe to do the tax calculation. For countries like US and Canada this requires the zip code. Since we cannot display that on auto mode there I just want to verify that it is really needed or maybe stripe does not display it since it is not required in Brazil.
If you wish to use Payment Element for automatic tax calculation, you can try Embedded components [0, 1]. It allows you to build a checkout page on your website using Stripe Elements and Checkout Sessions. You can use to to collect tax as well [2].
[0] https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-components
[1] https://docs.stripe.com/checkout/custom/quickstart
[2] https://docs.stripe.com/payments/checkout/taxes?payment-ui=embedded-components
https://docs.stripe.com/api/customers/create
During customer creation you can define to have tax calculation happen immediately. Is it required to pass zip code for the address of the user in order for this to work in Brazil where the zip code field is not displayed using the payment element on auto mode? That is all we need to know. If it is required or not.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Are you using Payment Element to collect customer details?
Yes exactly
https://docs.stripe.com/payments/payment-element
When you switch country to US you can see the zip code field appear...this does not happen for Brazil. We just want to know if it is required to collect zip code for Brazil for tax calculation. If it is not needed then we're good.
Are you using Stripe Tax? You mentioned the Payment Element is auto mode. What do you mean by that?
hi! I'm taking over this thread.
I meant that the setting for displaying zip code is on auto. You can only change it to off and auto. So stripe essentially determines if zip code is displayed or not in each country. My question is if we need to collect the zip code from the countries where it is not displayed like Brazil for tax calculation to work correctly.
correct, you cannot force the display of zip code in the Payment Element. so if you want to show it all the time, the solution is to:
- set its display to never
- then add your own HTML <input> on the page to always collect the zip code
But do we need the zip code for tax calculation when it is not displayed?
Maybe stripe does not display it since it is not required?
If it is not required and tax calculation works fine then that is all I need to know
But do we need the zip code for tax calculation when it is not displayed?
it depends. how are you doing the tax calulation currently?
afaik we pass the address including zip for US and Canada when we create the customer and set tax calculation to immediate
Can you explain a scenario where we would not need the Zip code and where we would need it? We are planning to rolling tax calculation out to Brazil in the future and need to plan accordingly.
can you answer my question: how are you calculating Tax? are you using Automatic Tax, or something else?
or the Tax Calulation API?
I will come back to you. Please keep the thread open.
the thread may close due to innactivity. but feel free to open a new one if needed.