#simran-khosla_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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
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?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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"
}
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.
but i only got the record no stripe_fees associated with it ๐ค
ah gotcha.
will try that.
Oh, you're also using Connect with Destination Charges, let me double check whether that changes my answer.
I don't think it does
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?
I guess i'm asking where am i putting that here: https://docs.stripe.com/api/balance_transactions/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yup, and then look at the fee_details. Oh, you don't make a list request, you make a retrieve request instead, passing the ID of the Balance Transaction you want to retrieve:
https://docs.stripe.com/api/balance_transactions/retrieve
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?
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.
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.