#Victor Agnez

1 messages ยท Page 1 of 1 (latest)

lucid sandBOT
charred salmon
gusty shoal
#

thanks but i don't need an amount but a rate. Do you think it's possible to get it ?

charred salmon
gusty shoal
#

yes but i have to give a clientId and an item even if the client is not yet created. That is my pb

charred salmon
#

Are you having problems using customer_details instead of customer? You need to know where the payment is going to happen to be able to calculate tax amounts for it, and similarly the Product needs to be defined so our system knows what tax categories to check.

gusty shoal
#

$this->stripe->tax->calculations->create([ 'currency' => 'eur', 'customer_details' => [ 'address' => [ 'country' => 'DE', ], 'address_source' => 'billing', ], 'line_items' => [ [ 'amount' => 10000, 'reference' => 'taxtestrefrence', ], ],

#

i used this and the response is 0 tax and a taxrate of 0 too

charred salmon
#

Alright, that gives me the impression the default tax category set for your account isn't taxable in that jurisdiction.

gusty shoal
#

ok, how do i change that ?

charred salmon
#

Change what?

gusty shoal
#

it is a test account

#

"the default tax category set for your account isn't taxable in that jurisdiction" that

charred salmon
gusty shoal
#

I changed all the parameter and the tax amount is always at 0. Do you have an example of conf where the tax is not 0 please ?

charred salmon
#

I don't, it's dependent on tax laws for the category you're selecting and jurisdiction you're doing the calculations for. I'm not familiar enough with tax rules to know an example offhand that will generate a non-zero amount for your region.

#

If you think our tax calculations are incorrect and have supporting evidence for that, please reach out to our Support team with that information so they can investigate:
https://support.stripe.com/?contact=true

lucid sandBOT