#kade_terminal-tax

1 messages ยท Page 1 of 1 (latest)

obtuse yachtBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1237396473411407882

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

gaunt knotBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

hasty chasm
#

What doc are you following?

#

For automatic tax

#

Like where did you see: AutomaticTax = new PaymentIntentAutomaticTaxOptions { Enabled = true }

wheat hare
hasty chasm
#

Where did you get above code snippet though?

#

Confused what you're following

#

I've just never seen AutomaticTax = new PaymentIntentAutomaticTaxOptions { Enabled = true } before so confused where you got it

wheat hare
#

The part that I'm currently confused about is that I created an address for tax, tax id, etc. on the dashboard before I created the payment.
And when I pay at the terminal, I wonder how tax is applied to each payment.

#

I am currently communicating through a translator, so there may be an error in the translation.
I'm sorry about this.

hasty chasm
#

Automatic tax isn't supported through terminal as far as i know

#

Where did you see that it is?

wheat hare
#

Then, may I know what method I should follow in order to set up tax for payment at the terminal?

grizzled quest
#

Hi there ๐Ÿ‘‹ because Terminal requires integrating with Payment Intents, Stripe Tax can't be used autoamtically. You would need to build a custom flow that leverages Stripe Tax to create Tax Calculations, and then you can use those to adjust the amount that you create your Payment Intents for to charge your customers.
You will want to explore the approach described here:
https://docs.stripe.com/tax/custom

Use Stripe Tax APIs to calculate sales tax, GST, and VAT with Stripe's payments APIs and non-Stripe payment processors

wheat hare
#

Then, before proceeding with the payment, can I send the tax calculation to the stripe first, and then pay the price when the tax calculated price comes to the stripe?

grizzled quest
#

I'm not sure what you're describing there. As explained in the doc that I provided a link to, you can create Tax Calculation objects to determine how much tax to collect:
https://docs.stripe.com/api/tax/calculations/create
then turn those into Tax Transaction objects when you process payments if you need to track those:
https://docs.stripe.com/api/tax/transactions/create_from_calculation

Once you have the amount of tax from the Tax Calculation, you can use that to increase the amount that you create your Payment Intent for.

obtuse yachtBOT
#

kade_terminal-tax

wheat hare
#

What I mean is that at the end of the day, when you proceed with the payment at the trip terminal, you create the payment in the code below, and then send the payment to the terminal so that the customer can proceed with the payment.
Then, before I create that payment, I wonder if I can calculate the amount to be paid first and create the payment with the calculated amount.
I'm curious about that part because I calculate the tax in the document you sent me, but I didn't proceed with the payment.

As a result, we would like to proceed with the payment of the amount + VAT.

grizzled quest
#

Yup, that's exactly what I'm trying to describe.

#

First you calculate the amount of tax to collect via the creation of a Tax Calculation object. You then combine that amount with the base amount of the payment, to create the amount that you'll use when creating the Payment Intent.

wheat hare
#

Then, is the tax data included in the payment details on the dashboard?
This is because the tax details in the current payment details are empty.

grizzled quest
#

I don't know what you're referring to in the Dashboard, we typically aren't too familiar with how things are represented there, but I'm not too surprised. You aren't passing tax details to the payment, just including the additional amount for tax.

If that's going to be represented in the dashboard, I would expect that you will need to create a Tax Transaction object for that
https://docs.stripe.com/api/tax/transactions/create_from_calculation
but again, I'm not confident those show up in the dashboard nor where they would show up if they do.

wheat hare
#

In the document you sent me, I understood that after creating an object for tax, I can add the price for the object to the payment price and pay.
Then lastly, in the document you sent me

Calculation = "taxcalc_1NaTVT2eZvKYlo2CsqGeLeU2",
Reference = "myOrder_123",
Expand = new List<string> { "line_items" },

Can you tell me what each content should be included in this part?
Can I find things on the dashboard that will be added to that content?

Exactly "taxcalc_1NaTVT2eZvKYlo2CsqGeLeU2", "myOrder_123", and "line_items".

grizzled quest
#

I don't know if or where these will be shown in the dashboard, our team specializes on working with the API and just aren't as familiar with the dashboard side of these flows.

calculation accepts the ID of the Tax Calculation object that was created/used
reference accepts any string, you will want to provide a value to use as a reference here. What values you choose to use for those references is up to you.

line_items is being passed into the expand option:
https://docs.stripe.com/api/expanding_objects
it adjusts the response that you receive, by including additional fields or expanding existing ones, but it doesn't adjust the behavior of the creation request.

wheat hare
#

I just received the information about Canada Tax.
Currently, if you pay 10 dollars, 10% tax will be incurred in Quavac, and 10% to 5% will be taxed in Canada.
When this happens, can I create a tax object for each price?

grizzled quest
#

Huh, I'm not sure I'm following? What is a "tax object" that you're referring to? Is that a Tax Rate? Are you trying to pivot away from using Tax Calculations?

wheat hare
#

What I heard in Canada right now is
"I got the tax data from strip and downloaded it, but the information is empty.
The tax is included in the payment price, which must be paid to both Quebec and Canada."
In this case, I would like to know if I have to create the VAT object you mentioned earlier twice.

grizzled quest
#

What does the "the information is empty" means? Is that the Tax Calculation object? If so and we're saying you don't need to collect tax, what tax are you asking about adding to the payment?

wheat hare
#

Currently, the payment only consists of the payment code posted above.
So I downloaded the tax data for each payment from strip to proceed with the payment and report it to the government, but the VAT details for that payment are empty.
When I inquired about this part in stripe, I was informed that the part should be added as a code, and the document for that part is https://docs.stripe.com/tax/set-up#integrate
I received it with this.

Enable Stripe Tax to automatically calculate and collect tax.

grizzled quest
#

Can you elaborate on what you mean when you say you "downloaded the tax data for each payment from strip"? Did you download something from your Stripe dashboard for that, what is the tax data being referred to? Do you have the ID of the payment you're referring to that you can share? Is this regarding a Terminal payment, which we discussed may not include tax details as they're just Payment Intents?
The document you referenced seems to point back to the document I shared initially, since you're working with Payment Intents and need to leverage a custom flow.

wheat hare
#

pm_1PDbgaLOsQno84zQbW3EaqfT
Can you check this payment ID?

grizzled quest
#

That's a Payment Method

#

A Payment Intent should have a pi_ prefix

wheat hare
#

ahh i found it
pi_3PDbgRLOsQno84zQ1M2hM680

grizzled quest
#

Yeah, this looks like it's associated with a Payment Intent that was created directly and processed through Terminal. I don't think I'd expect any tax details to be available for this, as none where provided. Does that align with what you were trying to describe?

wheat hare
#

That's right.
So I'd like to add tax information to each payment.

grizzled quest
#

So we're back to, creating Tax Transactions is the best option that I'm aware of, but I do not know if those are shown in the dashboard.

#

If getting those details to show in dashboards and reports is your main focus, I would recommend reaching out to our Support team who are more familiar with those surfaces:
https://support.stripe.com/?contact=true

wheat hare
#

Then, lastly, I would like to ask you for a final document on making the tax calculation.

Thank you so much for your dedication.

grizzled quest
wheat hare
#

Once again, thank you for your hard work.

Have a nice day!

obtuse yachtBOT