#john_tax-transactions-paymentintent-api

1 messages ยท Page 1 of 1 (latest)

upbeat isleBOT
#

๐Ÿ‘‹ 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/1356389361867821197

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

still fjord
#

Hi there

forest escarp
#

๐Ÿ‘‹

still fjord
#

Taking a look at the request you shared

upbeat isleBOT
still fjord
#

Why does it not automatically link the transaction and calculation to the paymentIntent?
PaymentIntents are more of a low-level object. PIs just have the concept of an amount , which is where the Tax Transaction comes in

forest escarp
#

I would have expected the tax transaction to be linked to the payment intent in the UI

#

And the tax calculation I would have expected to be linked to the payment intent in the UI

#

In this example, it seems that the payment reference was provided, when it was applied manually:

#

However, in this example, I have attached the transaction to a paymentIntent by using API calls and it does not seem linked to a payment reference:

tulip sparrow
#

hi! taking over for roadrunner here. can you explain your end goal here? the tax transaction doesn't really "link" the calculation to the payment intent necessarily. what do you need the linkage for? can you explain your end goal here and why this missing linkage is blocking you?

forest escarp
#

I'd like for all of the line items created with a tax calculation and linked to a paymentIntent to be available so that we can partially refund those line items in the stripe UI , and also have the right amount of tax refunded during a partial refund

#

Does that make sense?

upbeat isleBOT
crystal terrace
#

Hi ๐Ÿ‘‹

I'm stepping in for my colleague as they need to go.

#

When you refer to "the Stripe UI" it looks like you are talking about the Dashboard, correct?

forest escarp
#

Correct

crystal terrace
#

Okay. We aren't experts in what functioanlity the Dashboard provides. We mostly focus on the APIs. But let me create some test transactions and see what we can see.

#

Oh, right. There is nothing that directly links the Payment Intent to either the Tax Calculation or Tax Transaction

#

So the Dashboard cannot represent that.

#

For Payment Intents, we only know the amount

#

How are you creating Payments?

forest escarp
#

We are creating payments intents through the API .

When attempted by created an Invoice and linking related products through the dashboard UI , it was able to partially refund a line item and apply the correct tax transaction. That's the behaviour I want to replicate through my tax API implementation, but without creating an invoice, and by sending line_items through the API - not products

crystal terrace
#

The Invoice is a much more complex object. Payment Intents do not have that level of complexity

#

But we do document how to handle partial refunds using the API directly here

forest escarp
#

Yes, I have followed that API guide. Is there an easier way to enable partial refunds including the tax for line items through the dashboard/UI without having to look it up again?

crystal terrace
#

Not if you are using the API approach and Payment Intents to collect the tax

forest escarp
#

Thank you