#akin-tax-calculation
1 messages · Page 1 of 1 (latest)
Hello @open marsh let me look
https://stripe.com/docs/tax/customer-locations#address-hierarchy covers how we do address resolution and when we fall back to the IP address, does that help?
Yes thanks, i did that but seeing the tax calculated
I am in test mode at the moment so not sure if that is why
I'm sorry I don't follow what you said. You said the "tax is calculated" which seems fine? Can you be a bit more explicit/clear about what is/isn't working, what you see, what you expect, with detailed examples
My bad, i follow that process but the tax is not been calculated, i got not enough customer information even though i have the ip address tax calculation enabled
Providing detailed examples will be a lot more helpful and then I can help you look
Okay just a moment please
of course!
Here is how i am creating my customer
Here is where i create an invoice item and an invoice, when i would expect my response to include the calculated tax
Hi there, stepping in for koopajah as they need to step away. Give me a moment to catch up.
Can you provide a specific example invoice ID where you don't see tax?
Here is the response i got from invoices
Ah
That invoice isn't finalized
When you create an invoice it doesn't finalize for 1 hour unless you finalize it manually.
Oh
Tax is set upon finalization, which is when the PaymentIntent is created.
So i have to call the invoice.finalise(invoice_id) to get tax rate?
Yes or you could use https://stripe.com/docs/api/invoices/upcoming if you want to preview it ahead of time.
Oh great! I will try that, thanks for you help
Sure thing!
Hey i did that but getting customer location invalid error. automatic_tax[enabled]=true enough customer information must be provided
Even though i have the customer address correct and have ip address tax calculation enabled too
Can you provide the invoice ID?
in_1KvkosGzQvwaByBEciGbr0qX
Thanks, give me a moment. Server is busy
Okay, thanks
Alright so it looks like we didn't recognize the address that you used.
You can see the Tax location status for that customer is Unrecognized location
I think you have a typo in your address
from googling it I think it should be plains?
Yeah that could be why, try again
I had the ip address tax activated too why isnt it using that?
Adjusted that but still same thing error and i would think it would use the customer ip for tax if address not found
Hmm let's start with the address then handle IP
Can you try Rd instead of Road?
I'm surprised that would be the case
But also looks like what comes up as the official address
Yes using the same address to test, i have updated Road to Rd
I can change the customer address if you think it because the same as the official address
Would you like me to do that?
Yeah, or if there is another address that you know to test with? For some reason the system isn't liking that one.
Okay just a moment I will change the address now
I have updated the address
If this doesn’t work maybe we can try the ip option then
Let me know what the update does
Still getting same error
👋 I'm hopping in since bismark needs to head out soon - give me a minute to catch up
Heyy!! Thanks
From my understanding of our fallback behavior with taxes, we don't fallback to the IP address unless the other information (shipping address, billing address) isn't provided at all. So since you did provide an address, we use it to try and calculate tax behavior
Its not working even though the information are correct
The country needs to be two character country code - you used the full name by accident. So change "Canada" -> CA
I have updated that trying again now
That seems to work when the country name is updated but the tax amount shows 0
What's the invoice ID you're seeing that for?
in_1KvmITGzQvwaByBEFg3wPmE4
have you made sure to set up your automatic tax settings so that you're collecting tax in that region? https://dashboard.stripe.com/test/settings/tax
Specifically, you'll want to check under the tax registrations section
Oh yeah it was empty but will try again and see, that should fix that issue i would assume. Do have to have tax registration on all the possible countries that i might have customers at?
Yup, I believe that's the general idea
Oh thanks for you help
👍