Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eriktobben's avatar

Fetch Stripe fee from charge

Hi!

I am working on implementing Stripe into my application, but I would like to get the total fee Stripe takes from each charge. I see that it is available in the Stripe Dashboard, but as far as I can see, they dont include this in the response. Is this correct? Or is there another way of getting the correct fee associated to a charge?

0 likes
4 replies
jekinney's avatar

Stripe is a set percentage. So your right the API doesn't calculate it for you but easy enough to do on your end.

eriktobben's avatar

Yes, thats what I figured. The issue is that they have two different percentages for domestic and international cards, so I was hoping they sent back the actual fee just to be sure.

2 likes
eriktobben's avatar

After talking to Stripe, I found that I can pass the following with the charge request to get the Stripe fee in return:

"expand" =>array("balance_transaction")
5 likes

Please or to participate in this conversation.