#gCooL-bt
1 messages · Page 1 of 1 (latest)
first step is to start here https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
for that you need a Charge object, and Invoice objects have a charge field which is the Charge they processed
and no you can't get the fee until after the Invoice is paid and the Charge object is created, but you can predict the fee since it's static and our pricing is on our website and you can write code in test mode to verify your predictions in codee
thanks you for the fast response. How i can get transaction id from the charge object or payment intent id. I cannot find it in the doc.
the doc I linked describes the process
but the BalanceTransaction(which has the fees) is linked from https://stripe.com/docs/api/charges/object#charge_object-balance_transaction
so like it's invoice.charge.balance_transaction.fee_details . make sure you read the link I posted to understand how to leverage the expand feature of the API here!
Jesus.... I can swear I was reading the charge object couple of times, but when you share it i manage to see the "balance_transaction": "txn_1032HU2eZvKYlo2CEPtcnUvl".
thank you
great!