#Prabu
1 messages · Page 1 of 1 (latest)
Hello, to get this, you can look at the net property on the balance transaction associated with the payment. https://stripe.com/docs/api/balance_transactions/object?lang=python#balance_transaction_object-net
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
To get there, you can use the payment intent for the payment. It will have a charges array and the first charge in the array will be the charge that represents the payment attempt that succeeded. That Charge will have a balance_transaction property and that BalanceTransaction has the net property with the net amount you received from the transaction
https://stripe.com/docs/api/payment_intents/object?lang=python#payment_intent_object-charges-data
https://stripe.com/docs/api/charges/object?lang=python#charge_object-balance_transaction
https://stripe.com/docs/api/balance_transactions/object?lang=python#balance_transaction_object-net
Is that helpful or do you need a bit more info on how to do this in your specific situation?
here is my payment Intent ID pi_3M2vDJCe3SwEmFSu17H4SLNx
how to get balance trasaction id?
What programming language are you programming to Stripe with? I can make a quick snippet of code to show you
ruby