#Prabu

1 messages · Page 1 of 1 (latest)

neat echoBOT
fresh otter
#

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?

ember lion
#

here is my payment Intent ID pi_3M2vDJCe3SwEmFSu17H4SLNx

#

how to get balance trasaction id?

fresh otter
#

What programming language are you programming to Stripe with? I can make a quick snippet of code to show you

ember lion
#

ruby

fresh otter
#
  id: 'pi_3M2vDJCe3SwEmFSu17H4SLNx',
  expand: ['charges.data.balance_transaction'],
})```
#

And then with the object that is returned, you check charges.data[0].balance_transaction.net