#JCrags - Tax on custom page

1 messages ยท Page 1 of 1 (latest)

sharp sierra
#

It sounds like you are trying to use automatic tax on a payment intent you are creating on your server, correct?

#

At the moment PaymentIntents don't support Stripe Tax by default though there is a beta you can join for that. We have an address you can email about that beta at the bottom of our docs page https://stripe.com/docs/tax

Calculate and collect sales tax, VAT, and GST with one line of code or the click of a button.

raw kite
#

Yes, basically all I nees is an API endpoint in the lines of: api.stripe.com/autotaxcalculationbycustomer/:cus_id-here/:servicetype so that when I have the address/location/TaxID for a customer I can retrieve the rate based on that info and the simply use it somewhere on my front-end to display it to the user. Otherwise I can't show how much tax is included/excluded from the product they are buying. I am pretty sure it's easy to accomplish. Even if it comes ate a cost for 0.5% per calculation/request as an example as how the auto tax now works too.

#

Return value could simply be the tax rate in percentage I guess haha

#

And of course if tax couldn't be calculated due to the billing details not being correct or anything then return an error.

sharp sierra
#

Gotcha. Unsure if we offer an API endpoint like that but will see what we have.

#

Just to make sure I understand: your Invoicing workaround would use our Invoice's Automatic Tax functionality right?

#

As I understand it invoices don't have an endpoint like that either so I think the beta can help you get these rates more easily

raw kite
# sharp sierra As I understand it invoices don't have an endpoint like that either so I think t...

I have sent an email just now with some info in regards to what I am looking for. The payment intent can help with that too although I think a simple endpoint as explained would be nice to have upfront for users without doing to much fancy/crazy stuff. For instance, just think about a page that lists different products. It would be nice to easily display the rate based on the users billing details. Without them even wanting to buy anything at the moment. Anyway, Thanks for the help I appreciate it :)

#

I think in general it would be a powerful feature that Stripe can offer for some price.

sharp sierra
#

Of course. Please include that feedback on the need for such an endpoint in your email as well if you have not already.

raw kite
#

Yes I have ๐Ÿ‘