#luparoma
1 messages · Page 1 of 1 (latest)
I am a bit unclear on your usecase. Is the ask getting Stripe to calculate 0 on everything, or are you trying to understand how much tax you owe but don't want to add tax on top of the prices that you set?
Well I know here in france there is a 20% tax for the kind of product I sell (virtual money on a game), but I don't really know how I can indicate to Stripe that there is this tax. I thought activating Stripe Tax would calculate it automatically but it doesn't seem to work. Could it be because I am in test mode?
Oh apologies, I misread your message. Test mode should be able to calculate this 20% tax correctly
Have you double checked that you have the right tax code set on your Product object?
I don't use product object, because I manually define the price in my code
Like this:
$checkout_session = \Stripe\Checkout\Session::create([
"mode" => "payment",
"success_url" => "https://loufou.fr/paiement_reussi.php?code=$code_paiement",
"cancel_url" => "https://loufou.fr/ambres.php",
"locale" => "auto",
"automatic_tax" => [
'enabled' => true,
],
"line_items" => [
[
"quantity" => 1,
"price_data" => [
"currency" => "eur",
"unit_amount" => $prix,
"product_data" => [
"name" => $nom
]
]
]
]
]);
automatic_tax is enabled but it doesn't seem to work on the checkout page
or at least the tax is always 0,00€
(good luck answering everyone's messages, I see you have a lot of work, you have my support)
Reading and looking ⏳
Alrighty, while I'd suggest setting up a Product to re-use, you should be able to specify everything with ad-hoc data
You likely need to include tax_code in your product_data and tax_behavior in your price_data:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data-tax_code
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-tax_behavior
Which tells Stripe Tax how to calculate this
It's likely using your default settings without those, which are not set for the type of product you're describing.
If you can share a checkout session ID I can see about confirming that
Alright I forgot to enable something!
So now it works. Does that mean all taxes are fully covered by Stripe now?
Does that mean all taxes are fully covered by Stripe now?
There's potentially a lot behind that question. It means for the product code & behaviour you've specified here, Stripe Tax will calculate taxes in regions where you're registered and for applicable customer locations.
For more info about Stripe Tax behaviour outside the API, please speak to our support team: https://support.stripe.com/contact
Okay yes, I mean when Stripe indicates that there is for example a 0,83€ tax, does that mean it is automatically taken by stripe during the payment; or does that mean I get the amount that's indicated but have to declare it later?
This looks like an inclusive tax, and we calculate that amount for you based on the amount you set using the relevant tax rules. You are still responsible for reporting/remitting that tax to the relevant authorities, though.
For questions about reporting & remittance though, please work with our support team.
Alrighty