#Babu Munavarbasha
1 messages · Page 1 of 1 (latest)
pi_3MMRcwRNcO3F2LRl0GoWxIwR
Let's continue here. What issue do you have?
I am trying to get the const paymentIntent = await stripe.paymentIntents.retrieve(data.object.id, {
expand: ['charges.data.balance_transaction'],
},{
stripeAccount: stripeAccountId
});
the response does not give charges
i use this to record stripe fees on webhook
any thoughts?
It's expected in latest API version: https://stripe.com/docs/upgrades#2022-11-15
The charges property on PaymentIntent has been removed. You can use the latest_charge property instead.
Yep!
okay
just to confirm, the same code works on my previous application even now?
do i need to update my other apps
I just created a new Stripe account for a different application
and I am facing this issue only on my new app
@lament wraith - I am getting this error on expanding latest_charge
message: 'This property cannot be expanded (latest_charge.data).
The new Stripe Account will automatically have the latest Stripe API version, which is 2022-11-15 and that's why you have this event format
latest_charge.data.balance_transaction this doesnt work
@lament wraith - Also- so i dont need to update my old app?
You simply expand latest_charge.balance_transaction
Yes, if you old app uses a Stripe Account version < 2022-11-15
okay.. Standard connect, people might be creating connect accounts on my old app. That wouldnt have an issue?
I mean new standard connect accounts
Yep should be
you mean there wont be an issue or would have issue