#jo_best-practices

1 messages ¡ Page 1 of 1 (latest)

timber needleBOT
#

👋 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.

late kiln
#

Hi! Can I confirm what do you mean by auto-tax feature?

willow apex
#

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.

late kiln
willow apex
#

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.

late kiln
#

Are you using Payment Element to collect customer details?

willow apex
#

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.

late kiln
#

Are you using Stripe Tax? You mentioned the Payment Element is auto mode. What do you mean by that?

timber needleBOT
cedar cipher
#

hi! I'm taking over this thread.

willow apex
#

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.

cedar cipher
#

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
willow apex
#

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

cedar cipher
#

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?

willow apex
#

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.

cedar cipher
#

can you answer my question: how are you calculating Tax? are you using Automatic Tax, or something else?

#

or the Tax Calulation API?

willow apex
#

I will come back to you. Please keep the thread open.

cedar cipher
#

the thread may close due to innactivity. but feel free to open a new one if needed.