#Barba
1 messages · Page 1 of 1 (latest)
Hello 👋
- Gross
- Net
- Comission
These are not part of Stripe's API vocab 😅
The invoice should have amount_paid which should get you gross amount.
Are you asking how you can look at the fees for this invoice?
Right, its what I’m looking for
I need to calculate the final benefist so I guess it involves the stripe feed and I don’t know if also requires information from the user payment or/and country of the app from where he is paying .. kind of lost and I want to make sure I can calculate it
Gotcha. So the Stripe fees actually live on BalanceTransaction object which isn't directly accessible from the invoice.
The invoice should have a payment_intent parameter, once you find that then you can follow this example to retrieve stripe fees
https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
Let’s say I have this example response:
‘’’
{
"id": "txn_173TTbLf6j9PT4hqwUqVrOmd",
"object": "balance_transaction",
"amount": 201,
"available_on": 1447200000,
"created": 1446652027,
"currency": "gbp",
"description": null,
"exchange_rate": null,
"fee": 26,
"fee_details": [
{
"amount": 26,
"application": null,
"currency": "gbp",
"description": "Stripe processing fees",
"type": "stripe_fee"
}
],
"net": 175,
"reporting_category": "charge",
"source": "ch_173TTbLf6j9PT4hq4QNL1Yzq",
"status": "available",
"type": "charge"
}
‘’’
From this I think Gross is 201, fee is 26 and net 175.
What happens with this fee?? Stripe keeps this? Thanks
I will keep the rest of the money, no? Nothing weird on terms of the user paying from any country or what ever, this feed is the final one I guess isn’t it?
I believe that's correct, Stripe doesn't charge additional fees on top of processing fees. The processing fees might be higher depending on customer location but my understanding is that it is all calculated under processing fees
Also, our team on discord won't know a ton about fees as its outside of our expertise. You can talk to our support team if you have any questions around how fees are calculated. They're experts on this and can help further