#Ante75-fee amount

1 messages · Page 1 of 1 (latest)

slate echo
#

👋 happy to help

#

do you mean before or after you make the charge?

shut fox
#

it would be used later, in case of reimbursement, to withhold the amount of the commission,
but if it is not possible even earlier

slate echo
#

are you using Payment Intents? Checkout? etc.?

shut fox
#

yes

slate echo
#

which one?

shut fox
#

Payment intents

#

my problem is this:
in case of a refund, I have to return the amount (minus) the stripe commission to the customer, but since the commission is variable I do not know the amount

slate echo
#

could you please share a Payment Intent Id?

shut fox
#

pi_3LFbrvJTv3g6fMhy1Jldh308

slate echo
#

on a Payment Intent you can find a list of charges

#

in the fee_details you would have to filter to get the one with type: "stripe_fee" and get the amount on that object

#

it's not simple but it's the only way

shut fox
#

I try and tell you right away

slate echo
#

let me know if you need any more help

shut fox
#

{<Stripe.BalanceTransaction@52022486 id=txn_3LFbrvJTv3g6fMhy1l0Z0kpv> JSON: {
"id": "txn_3LFbrvJTv3g6fMhy1l0Z0kpv",
"object": "balance_transaction",
"amount": 450,
"available_on": 1656979200,
"created": 1656412930,
"currency": "eur",
"description": "(Acconto) Account: aleante Orario: 28-06-2022 14:00 Operatore: Alex Service: : Barba €15,00",
"exchange_rate": null,
"fee": 38,
"fee_details": [
{
"amount": 38,
"application": null,
"currency": "eur",
"description": "Stripe processing fees",
"type": "stripe_fee"
}
],
"net": 412,
"reporting_category": "charge",
"source": "ch_3LFbrvJTv3g6fMhy1jM1QEZd",
"status": "pending",
"type": "charge"
}}

#

38 is the stripe commission right?

slate echo
#

yes

#

that's the amount in cents

shut fox
#

thank you so much for support

#

sorry one more question, is it possible to know the amount of the commissions before paying?

slate echo
shut fox
#

ok thank