#arun_webhooks

1 messages · Page 1 of 1 (latest)

hearty yarrowBOT
#

👋 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.

neat basin
#

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?

steel nest
#

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

neat basin
#

I am trying to do the same but receiving below error Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR

steel nest
#

What does 'do the same' mean exactly?

neat basin
#

41.4 is working fine but only with 45.9 i am seeing this

steel nest
#

Seeing it where? What are you trying to do when that error is thrown?

neat basin
#

Marinating 2 different endpoint in the same application

steel nest
#

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

neat basin
#

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.

steel nest
#

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

#

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

neat basin
#

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

steel nest
#

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

neat basin
#

Is there any other way to use the different webhook with same stripe.net dll?

steel nest
#

Not if the webhooks are configured to use different API versions no

neat basin
#

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 ?

hearty yarrowBOT
steel nest
#

You're going to need to actually share some more details about the error you're seeing. The details are very vague

wheat kestrel
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!