#ArunBhat
1 messages ยท Page 1 of 1 (latest)
Hi! Let me help you with this.
What are you referring to exactly?
Which SDK are you using?
for stripe are you asking ?
Yes
Stripe.net 41.4.0
The error we are getting is : Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0
this is the error we are getting
Is this error coming from the Stripe SDK?
we are using newtonsoft.json 12.0V, but stripe expects 9.0V, how to resolve it
this is the issue
Hi there ๐ apologies for the delay. I'm jumping in to lend a hand, please bear with me a moment while I catch up on the context here.
sure
What dotnet version are you using ?
For example, I see that it's included for .Net 5:
https://github.com/stripe/stripe-dotnet/blob/23c5112453dc4cc9884a57ea5634e022b1d5df56/src/Stripe.net/Stripe.net.csproj#L40
.net framework 4.8 and Stripe.net 41.4.0
You need to have at least netcoreapp3.1 in order to use newtonsoft.json 12.0V and Stripe
AFAIK, nope you can't. Even you use .Net Core or you downgrade Newtonsoft to 9.0
there is no other version of stripe which supports Newtonsoft.jsopn 12.0V
Using the latest Stripe API nope, you probably need to search for an older stripe version
But that's not recommended.
any idea on which older version might be compatible ?
maybe try 13.3.05 which is a very old version that uses 2018 APIs.
https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#1331---2018-03-05
I don't recommend doing this.
ok thank you
You're welcome ๐