#arun_webhooks
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1284066240708608075
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Since there is no backward compatibility, if i upgrade the stripe.net dll to support the new customers it is impacting the existing users
Any suggestions how to address this?
Yep major version of the .NET SDK are pinned to specific API versions so depending on the version you're using it will only work with events generated with the same API version
45.x.x uses 2024-06-20
41.x.x uses 2022-11-15
If you need to maintain both versions, and process events generated on different API versions, then you're likely going to need to maintain two separate endpoints one for each SDK version
I am trying to do the same but receiving below error Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR
What does 'do the same' mean exactly?
41.4 is working fine but only with 45.9 i am seeing this
Seeing it where? What are you trying to do when that error is thrown?
Marinating 2 different endpoint in the same application
Again, some specific code that actually throws that error
But generally speaking you should be able to have two .NET SDK clients using different versions in a single application
We are using plugin methods for credit card, now we have 2 plugins, one with 41.4 stripe.net and one with 45.9. plugin with 41.4 is working fine but 45.9 is not.
We did not make any changes in the code for 45.9 its exact same.
Yeah I mean that's likely not going to work given that they are different major versions with multiple breaking changes
You can't just re-use the exact same code across different SDK versions in a strongly typed language like .NET
For example, look at the release notes/changelog for the SDK. Here is a list of breaking changes introduced in 45.x.x: https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#4500---2024-06-24
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - stripe/stripe-dotnet
There will be breaking changes in the other versions between 41 -> 45 like you're doing
Which is why I said it's generally easier to maintain separate webhook endpoints/codebases entirely if you need separate versions
but what i observed is if i replace the 41.4 with 45.9 in the same plugin which we are using it works fine, no code change needed
Then I'd guess that something is preventing you from using two separate SDK versions together in the same codebase
Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR
That error doesn't seem like anything specific to Stripe or our SDK, sound like a generic network error. You're going to need to give us more details really
Is there any other way to use the different webhook with same stripe.net dll?
Not if the webhooks are configured to use different API versions no
with local machine set up will i be able to test stripe set up?
I am getting stack overflow exception when i try to debug locally, anything i need to do to make it work locally ?
You're going to need to actually share some more details about the error you're seeing. The details are very vague
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!