#pamela-stripefee-api
1 messages · Page 1 of 1 (latest)
pamela-stripefee-api
@raven grail https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment is the doc you want. The Stripe fee is stored on the BalanceTransaction that is associated with a given successful Charge, see https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-fee
Thankyou. How do we get the TXN id? in the documentation link that you have provided the fee is zero but it is not null. In the event detail example on the documentation, there is a txn id.
Did you look at both docs?
A Charge ch_123 is linked to a BalanceTransaction txn_123
Do you know why we can not this api informaiton on the UI event detail?
I don't understand what that could mean I'm sorry. Can I ask you to try and be really specific about wht you are blocked on with detailed information about what you are looking at, what you see, etc.
Sorry.
Below is a screenshot of the event details from the UI. This payment has a stripe fee associated with it. I am not able to API detail.
for the stripe fee
Okay but that's a picture. Sorry this Discord server is for developers asking concrete questions about their own code and integration
This is an invoice.finalized Event. It describes an Invoice. Stripe has dozens of API resources and objects that each mean different things. Some are linked to each other. Understnding that "chaining" and all those links is crucial to be able to debug things.
I am showing an example the field we are trying to intergrate. Thank you for information you have provided.
An Invoice will create a PaymentIntent, that PaymentIntent can have 0/1/N Charges depending on the number of payment attempts. A Charge will have a BalanceTransaction if it succeeded
So you go Invoice -> PaymentIntent -> Charge -> BalanceTransaction
ok.
So I can use the charge Id which will provide the txn id for the stripe fee. I noticed that in use case documentation you have provided.
You can use the chain I described to get to all the information you need yes