#devangbhuva97

1 messages · Page 1 of 1 (latest)

solid prismBOT
compact thistle
#

HI there, did you check the error message? The shipping tax code txcd_92010001 cannot be used on a line item. Use the `shipping_cost` param to calculate tax on shipping charges.

fair thunder
#

Yes.. not able to get this. I'm passing address source as billing & not specified txcd_92010001 code anywhere from myside. So from where that code is coming?

#

& in tax settings, I won't able to see anything

compact thistle
#

And you didn't specify any product in the line_items. Can you tell me what you want to achieve?

fair thunder
#

I want to calculate tax for custom payment flow by directly passing amount in line items

compact thistle
#

If it's not the tax code you want to use, I'd suggest you to specify one

fair thunder
#

But where I can specify? Because not able to load tax settings. I want to understand from where this code is coming - txcd_92010001?

Reason for asking these questions are - we are adding tax support for customers & they are connected with our platform account using Standard Connection. So we need to guide them as well

compact thistle
#

It depends on the type product in the line_items, you can't calculate tax without a tax code

fair thunder
#

Do you want to take code from above list?

compact thistle
#

This is a question for you.

fair thunder
#

Now I think - i'm able to get..

We need to collect product category from customer & map with stripe tax code... right?

compact thistle
#

Yes you are right

fair thunder
#

Another question i have for if our customer opted for 1 onetime product & 1 recurring product?
Can you suggest how we can use custom tax in that flow?

For above case, currently we are using invoice items & subscription api to charge. First we are creating invoice items & then create subscription.

compact thistle
#

You can just pass the products to the line_items when call the tax calculation API

fair thunder
#

Will it collect tax in every invoice of subscription?

compact thistle
fair thunder
compact thistle
#

tax rate and tax code are different. Alternatively you might want to enable Stripe Tax (https://stripe.com/docs/tax/set-up) and let Stripe automatically create tax rates based on tax codes.

Enable Stripe Tax to automatically calculate and collect tax.