#saber-checkout-tax

1 messages ยท Page 1 of 1 (latest)

random cliffBOT
snow spindle
#

Hello ๐Ÿ‘‹
Give me a moment to take a look

fiery tiger
#

ok

snow spindle
#

Using Tax Rates is different than using Stripe Tax (automatic_tax: true)

So no, you wouldn't need to set automatic_tax property while using tax rates

fiery tiger
#

Good to know.

#

'dynamic_tax_rates' => [
'{{FIRST_TAX_RATE_ID}}',
'{{SECOND_TAX_RATE_ID}}',
// additional tax rates
],
]],

#

Above displays the input parameters of dynamic_tax_rate. Looks like I have to create tax rate id before before I can use dynmic tax rate feature.

#

Above code is in php

snow spindle
fiery tiger
#

I am testing dynamic tax rate using postman, will php code structure works with postman, as I am getting error though I am passing tax id to dynamic tax rate

snow spindle
#

Not sure about the code structure in POSTMAN. The fields should be nested accordingly in order for the API to handle it correctly

#

What error are you seeing?

fiery tiger
#

I input for price and still getting above error

snow spindle
#

You seem to be passing price and price_data in the same API request. You can only pass one at a time

fiery tiger
#

Let me check

snow spindle
#
        unit_amount_decimal: "12000",
        currency: "usd",
        product_data: {
          name: "Stethoscope",
        },
      },
      quantity: "1",
      price: "10000"```
fiery tiger
#

I got the successful response. Now I need to know where are the tax information of checkout session response. I do not see any tax information on checkout session response.

snow spindle
#

Can you share the checkout session obejct ID?

fiery tiger
#

"cs_test_b1qKMHXCwR4pwxXogRInxomB08q5dIRYs7xRrf7eYRRhBDAGKpBSEm0EPn",

snow spindle
#

The checkout session hasn't been completed yet

#

Adding the address calculates the tax based on the tax rate

fiery tiger
#

I paid using url.Will you keep my Discord session on as I have to drive for next hour and a half and I do not miss your feedback.

#

Will I get back collected tax information form checkout session id or payment intent id or some other id?

random cliffBOT
fiery tiger
#

Let me check

fiery tiger
#

py_3NUtHsCjwmDvqQqq1XNKabgX. What is the name of this object?

twin harbor
#

It's a payment

#

what are you asking about?

fiery tiger
#

Will successful Checkout session automatically create payment object?

twin harbor
#

It will automatically create a Payment Intent and Charge. What is the context for your question?

fiery tiger
#

I am looking at the "Payment" tab of Stripe dashboard. And I am wondering, the data populated in the payment tab is fetched from how many objects?

twin harbor
#

That I can't tell you as we are not experts on the Dashboard

#

But transactions like CHeckout sessions completing as well as transfers will result in payments

fiery tiger
#

Is is possible to look the webhook events from dashboard?

twin harbor
#

In the Developer section

fiery tiger
#

I got it.

#

I can create tax rate objects using postman and i wanted to see these object ids at the Dashboard. Is it possible?

twin harbor
#

You should be able to see it in the API respone.

#

But you can view that in your account logs

fiery tiger
#

Let me check it out

#

I can see the tax_rate object details from Dashboard. I need to save details information of the object to db table. How can I do it?

twin harbor
#

You would retrieve them via the API and save them to your DB

fiery tiger
#

That makes sense. Thank you!

twin harbor
#

Happy to help ๐Ÿ™‚

fiery tiger
#

Will you please explain what is the advantage of using dynamic tax rate feature during checkout session?

random cliffBOT
mossy rain
#

@fiery tiger what do you call "dynamic tax rate"? What's your real question?

#

saber-checkout-tax

fiery tiger
#

If I need to collect tax from non-EU, Japan and Australi and US, then I cannot use dynamic tax rate? Right?

#

Instead using dynamic tax rate, I can use fixed tax rate. RIght?

#

I know the name of the customer billing country; I can pass predefined tax id and attach to the checkout session. All I have to do is to create more than 260 tax rates of 260 countries/regions.

mossy rain
#

I'm sorry I barely understand what you describe and the words you are using

#

If you don't want to use Stripe Tax, then yes Mhttps://stripe.com/docs/payments/checkout/taxes?tax-calculation=tax-rates> is the detailed doc

#

So yeah if you know the address upfront you pick the right TaxRate(s)

fiery tiger
#

Both dynamic and fix tax rates, I need to create tax id. So what is the advantage of using dynamic tax feature?

mossy rain
#

The "dynamic" part just means you can pass multiple TaxRate and then we choose the right one

fiery tiger
#

Is there a specific id in the tax_object that Sripe will use?

mossy rain
#

the TaxRate id yes txr_123

fiery tiger
#

So Stripe has to go through all the tax objects and decide which one is relevant.

mossy rain
#

yes

fiery tiger
#

In one checkout session, is it possible to use more than one tax_id?

mossy rain
#

Yes, that's the point of that feature. I recommend just testing this carefully in Test mode. It will be a lot easier to grasp than those long Discord threads!

fiery tiger
#

So in one checkout session, I can ship Mutiple items to multiple courtiers. So I need to add multiple tax_id.

mossy rain
#

This is not really something Checkout supports at all. We don't have "multiple shipping addresses" or anything like this

fiery tiger
#

Is this feature coming?

#

Thanks!