#Ante75-fee amount
1 messages · Page 1 of 1 (latest)
it would be used later, in case of reimbursement, to withhold the amount of the commission,
but if it is not possible even earlier
are you using Payment Intents? Checkout? etc.?
yes
which one?
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
could you please share a Payment Intent Id?
pi_3LFbrvJTv3g6fMhy1Jldh308
on a Payment Intent you can find a list of charges
on the charge object you can find a balance_transaction id that you could then use to retrieve the balance transaction object https://stripe.com/docs/api/balance_transactions/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
I try and tell you right away
let me know if you need any more help
{<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?
thank you so much for support
sorry one more question, is it possible to know the amount of the commissions before paying?
Find help and support for Stripe. Our support center 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.
ok thank