#surbhi-charges-dotnet
1 messages · Page 1 of 1 (latest)
recently i upgraded stripe.net nuget package and i see it broke my existing function. what is realised, now stripe won't return charges section in retriev payment intent api call
surbhi-charges-dotnet
i used to save some values from that.. now i dont know which api call is required to capture charge's section value
anyone?
stripe-dotnet is always pinned to the latest API version so when you upgrade between major versions it will have breaking changes.
https://stripe.com/docs/upgrades#2022-11-15 is the most recent API version and it removed the charges collection and replaced it by latest_charge: 'ch_123'
So that's what you'd use to find the most recent Charge associated with a PaymentIntent, if any
ok.. i also used to capture application amount, application id
how will i get it now
balance transaction id
all other ids was in charge section
now i want all other ids.. how do i get that
You get a PaymentIntent, it has latest_charge: 'ch_123' and then you can call https://stripe.com/docs/api/charges/retrieve and get that information