#simran-khosla_api

1 messages ยท Page 1 of 1 (latest)

dim joltBOT
#

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

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

last crowBOT
civic meadow
#

Hi there ๐Ÿ‘‹ I'm not exactly sure what transactions will incur what fee, and the way you're paying your Stripe fees. Let's try to look at a Balance Transaction or two and see if we can find fee amounts, if not you may need to speak with our Support team to confirm how Stripe fees are charged to your account.

For the first Payment Intent you referenced (pi_3QpFMrEgQAxJcOH41eOc6fzd), can you confirm the ID of the Balance Transaction object you were inspecting for that intent, and what the contents of the fee_details hash were when you retrieved it?
https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee_details

halcyon river
#

oh yes let me pull that up!

#

yeah for some reason when i make this query to balance:

#

$data = $stripe->balanceTransactions->all([
'source' => 'pi_3QpFMrEgQAxJcOH41eOc6fzd',
['expand' => ['data.source']]
]);
return $data;

#

i don't get any results? that's where i WOULD find the transaction id you know?

#

is there somewhere else i can retrieve that from in the UI perhaps?

#

cause i tried the source being the original payment_intent id

#

and then i tried the transfer associated and got something

#

tr_3QpFMrEgQAxJcOH41tkrR8Sq

#

{
"object": "list",
"data": [
{
"id": "txn_3QpFMrEgQAxJcOH41AkudW0Y",
"object": "balance_transaction",
"amount": -3000,
"available_on": 1738886400,
"created": 1738787938,
"currency": "usd",
"description": null,
"exchange_rate": null,
"fee": 0,
"fee_details": [],
"net": -3000,
"reporting_category": "transfer",
"source": "tr_3QpFMrEgQAxJcOH41tkrR8Sq",
"status": "pending",
"type": "transfer"
}
],
"has_more": false,
"url": "/v1/balance_transactions"
}

civic meadow
#

Oh, that's because the source isn't the Payment Intent, it's the underlying Charge object.

I suggest finding the related Balance Transaction from a Payment Intent by retrieving the intent, and expanding latest_charge, then find balance_transaction on the nested Charge object. Which is in latest_charge.balance_transaction.

halcyon river
#

but i only got the record no stripe_fees associated with it ๐Ÿค”

#

ah gotcha.

#

will try that.

civic meadow
#

Oh, you're also using Connect with Destination Charges, let me double check whether that changes my answer.

#

I don't think it does

halcyon river
#

OKAY got it

#

txn_3QpFMrEgQAxJcOH41jISrn7N

#

gonna see what happens here so you're saying do a retrieve on balance transactions for it ?

#

wouldn't that just get me the individual transaction?

civic meadow
halcyon river
#

ah so

#

{
"id": "txn_3QpFMrEgQAxJcOH41jISrn7N",
"object": "balance_transaction",
"amount": 3000,
"available_on": 1738886400,
"created": 1738787938,
"currency": "usd",
"description": "Paytest",
"exchange_rate": null,
"fee": 0,
"fee_details": [],
"net": 3000,
"reporting_category": "charge",
"source": "ch_3QpFMrEgQAxJcOH41BF3Q1LM",
"status": "pending",
"type": "charge"
}

#

here's a retrieve on it

#

i see nothing in fee_details?

#

does that mean no additional fees are being charged by stripe to our test account for this kinda transaction?

#

i think i'll probably just confirm all fo this with our Support Person

#

only cause i wonder if the same fees are not setup for a Sandbox/Test account vs. a Prod one you know?

civic meadow
#

That means no fees were assessed for that Charge, which doesn't sound right to me. I'd suggest reaching out to our Support team to see if your account is on IC+ pricing.
https://support.stripe.com/?contact=true

If so, Stripe fees are aggregated in a different way and I'm not sure how to retrieve them from the APi.

halcyon river
#

Perfect!

#

yeah it seems odd for sure.

#

because it was definitely made with a terminal reader.

#

we'll reach out to support.

#

thank you for your help!