#lost.prototype
1 messages ยท Page 1 of 1 (latest)
You can look at the Charge object, then the Balance Transaction under it. It has fee break down
checking...
Hmm, I can't seem to click on the charge ID
ch_3Nn2efLTob6XZrOy0btAUV4A
Is that normal after a period?
I mean not clicking, but using API
Retrieve Charge API, and expand balance_transaction
Ah, hm. That'll take me a bit to set up.
Is there any way to know for certain what all the fees will be for a transaction, prior to putting it through?
I'm trying to pre-calculate how much a customer would need to pay to cover costs, and I know there's documentation on the stripe web site with a formula on it. But I don't think it's 100% fool proof.
That's a common ask but unfortunately there is noway to pre-calculate. You can refer the Stripe fee from https://stripe.com/pricing and it's will rarely change (in face we didn't change it for years) and compare with a real balance transaction in Test mode
Yeah, so here's what I got for that API response:
"balance_transaction": {
"id": "txn_3Nn2efLTob6XZrOy0aFMDhyZ",
"object": "balance_transaction",
"amount": 1000,
"available_on": 1694476800,
"created": 1693933391,
"currency": "cad",
"description": null,
"exchange_rate": null,
"fee": 238,
"fee_details": [
{
"amount": 38,
"application": null,
"currency": "cad",
"description": "Stripe processing fees",
"type": "stripe_fee"
},
{
"amount": 200,
"application": "ca_OPS4FPSKV9WGhjAomiwMtGBiVJzL6aOg",
"currency": "cad",
"description": "Street Swipe application fee",
"type": "application_fee"
}
],
"net": 762,
"reporting_category": "charge",
"source": "ch_3Nn2efLTob6XZrOy0btAUV4A",
"status": "available",
"type": "charge"
},
Just at a glance, I can't figure out how this isn't ((12+0.3)*0.029)
I end up with about 36 cents in fees. Not 38
(although I'm also a bit fuzzy on where my $2 application fee goes, so I just roll it in with the cost)