Massive Stripe Update Help - Plan to Prices (~2019 version - present)
I have to update a C# API I've inherited and the current version of stripe-dotnet it's on is
27.4.0
and I'm updating it to 47.3.0
. One of the big changes I've noticed is that stripe wants you to move from Plans
to Prices
. I was hoping someone who knows Stripe well can give me a rundown on what the change is here?
I have a snippet of the existing code here that is just trying to return the total monthly cost for a subscription.
the fields Subscription.Quantity
and Subscription.Plan
are deprecated so from my understanding of this Plan
-> Prices
api migration I think this code should be
Those objects seem to be nested in a second array Subscription.Items.Data
. Just wanted to know if I'm going down the right track with this or if this is wrong. From what I've read this Prices
api change was from back in 2017 lol so if all of this stuff with plans is unfamiliar I understand. Ty tyGitHub
GitHub - stripe/stripe-dotnet: Stripe.net is a sync/async .NET 4.6....
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - stripe/stripe-dotnet
0 Replies