#bear-transaction-fee
1 messages · Page 1 of 1 (latest)
Fantastic, cheers
Following the .Net example, I'm getting back a result from calling PaymentIntentService.Get(), however the BalanceTransaction property is null
did you properly expand like the doc explains? Does that PaymentIntent have a LatestCharge?
I attempted that, but didn't have a LatestCharge property, so opted for the "older API versions" method
Is that still supported?
The status of the payment intent appears to be succeeded
ah you must be on an old version of stripe-dotnet
so you want to look at pi.Charges.Data[0].BalanceTransaction
yeah that's from over 2 years ago :p
Ahh, yeah that's the property that is null
Can you give a concrete PaymentIntent id? that will make it easier
Sure, 2 secs
pi_3MvPnfDfUb2qxRGD14kcT6T4
I have a BalanceTransactionId, but the BalanceTransaction property is null
Cheers!
So you are expanding charges.data.balance_transaction?
var options = new PaymentIntentGetOptions();
options.AddExpand("latest_charge.balance_transaction");
var service = new PaymentIntentService();
PaymentIntent paymentIntent = service.Get(paymentRef, options);
List<BalanceTransactionFeeDetail> feeDetails = paymentIntent.Charges.Data[0].BalanceTransaction.FeeDetails;```
Is what I've been trying
So yeah you are expanding latest_charge but that doesn't exist on the .NET version of our SDK you are using.
Change latest_charge.balance_transaction to charges.data.balance_transaction and try again
Righto, cheers, just updated that and I'm now getting back the FeeDetails