#Flomir-taxes

1 messages · Page 1 of 1 (latest)

simple dust
#

Hi there 👋 can you elaborate a bit on what you're looking for?

raw pilot
#

What I want :

#

me

simple dust
#

Those look like one of our prebuilt pages, are you working with payment links or checkout sessions?

raw pilot
#

My code :

$checkout_session = \Stripe\Checkout\Session::create([
    'line_items' => [[
        # Provide the exact Price ID (e.g. pr_1234) of the product you want to sell
        'price' => 'price_1KBmtWKDrHeNIeI9fwDxhQqZ',
        'quantity' => 1,
    ]],
    'automatic_tax' => [
        'enabled' => true,
    ],
    'customer_email' => $_SESSION['email'],
    'allow_promotion_codes' => true,
    'mode' => 'payment',
    'success_url' => $YOUR_DOMAIN . '/success',
    'cancel_url' => $YOUR_DOMAIN . '/premium',
]);
simple dust
#

And it looks like you aren't passing in an existing customer, so the checkout session should calculate tax based on the address information provided during checkout. Is that not what you're seeing?

raw pilot
#

It's simple, when I put my VPN in Germany, there is no tax, but when I put my VPN in France I have the TAX (in French : TVA). How to make this system there. Because in fact we can know before creating the client from my IP.
But after, what allows to do that.
I thought it was the automatic_tax

#

@simple dust

simple dust