#rvk
1 messages · Page 1 of 1 (latest)
Hello! Fees are on the Balance Transaction objects associated with the transactions: https://stripe.com/docs/api/balance_transactions
You would need to fetch those separately via the API.
looks like it needs a transaction id to fetc this. How do I get the transaction id? I have a payment intent id. Can I use it to fetch transaction id? ANd/or can i user payment intent id to fetch the processing fee
You can retrieve the Payment Intent from the API and expand the latest_charge and then expand the balance_transaction on that Charge (meaning you would expand latest_charge.balance_transaction) which would give you all three of those objects, in full, in a single APi request: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
Details about expansion: https://stripe.com/docs/api/expanding_objects