#rubn-recacha_api

1 messages ¡ Page 1 of 1 (latest)

clever pollenBOT
#

👋 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/1237143933398679732

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

pine hull
#

For example, here I have a PI, CH and TXN:

#

But... How I can obtain the fee id ? "fee_xxxxxxxx"

#

for that payment intent

fossil nebula
#

Hi there!

#

There is no fee object so no fee ID

#

You landed at the right fee amount correctly: PaymentIntent to Charge to BalanceTransaction

pine hull
#

That account is a connected account so...

#

if I go to the platform account, I see a lot of application fees with IDS:

#

I cannot obtain that information in the connected account, right?

fossil nebula
#

Hold on a second. Application Fees are different from Stripe fees

#

The 'fee' you see in the BalanceTransaction refers to the Stripe fees

pine hull
#

I see the both, application_fee also

fossil nebula
#

Stripe fees don't have IDs but the ApplicationFees you create in a Connect context do have IDs

#

Let's take a step back. To be clear, you're currently trying to retrieve the ID of an ApplicationFee that was created for a PaymentIntent?

pine hull
#

in the connected account, I have a Charge:

#

ch_3PDVtx2u00BnZWCK1mkY1mm0

#

This:

#

If I go to the same charge in the parent (platform) account, I see this:

#

So... I see that if I get the charge with the connected account, I cannot get the app_fee, but if I go to the charge with the platform account, I see the application_fee object with the ID correctly

fossil nebula
#

Ah, I see what's going on

#

You're using Connect to create direct charges. In a direct charge, the ApplicationFee object "lives" on the platform, which is why only the platform sees the ApplicationFee object ID

#

The connected account just sees the amount

pine hull
#

oohhh

#

ok ok

#

thanks!