#bear-transaction-fee

1 messages · Page 1 of 1 (latest)

echo nightBOT
smoky fulcrum
#

and you can look at it in the Dashboard in seconds too

#

bear-transaction-fee

inner echo
#

Fantastic, cheers

echo nightBOT
inner echo
#

Following the .Net example, I'm getting back a result from calling PaymentIntentService.Get(), however the BalanceTransaction property is null

smoky fulcrum
#

did you properly expand like the doc explains? Does that PaymentIntent have a LatestCharge?

inner echo
#

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

smoky fulcrum
#

ah you must be on an old version of stripe-dotnet

#

so you want to look at pi.Charges.Data[0].BalanceTransaction

inner echo
#

Cheers!

smoky fulcrum
#

yeah that's from over 2 years ago :p

inner echo
#

Ahh, yeah that's the property that is null

smoky fulcrum
#

Can you give a concrete PaymentIntent id? that will make it easier

inner echo
#

Sure, 2 secs

#

pi_3MvPnfDfUb2qxRGD14kcT6T4

#

I have a BalanceTransactionId, but the BalanceTransaction property is null

paper elm
#

👋

#

stepping in

#

Taking a look

inner echo
#

Cheers!

paper elm
#

So you are expanding charges.data.balance_transaction?

inner echo
#
 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

paper elm
#

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

inner echo
#

Righto, cheers, just updated that and I'm now getting back the FeeDetails