#bit_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/1352241710457028688
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
p.s. I still don't understand what the "default API version" is for. If my webhook gets called depending on the API version I've used to create a transaction, in which case I'll receive a different API version call to my webhook, different from the one I have used to call the API before?
(I'll be back in 10 min.)
You can't upgrade API version only in test mode (the option is disabled)
You can only upgrade your global/default API version in live mode
If you want to test a particular API version, you can pass it with the SDK:
https://docs.stripe.com/api/versioning
since I'm using c#, the API version is fixed in the library
I currently have a website (let's call it web1) to send payment requests and flow, and then a different one (web2) where I receive the calls from stripe (webhook). As far as I understand, if I upgrade the web1 .net stripe to last version of Stripe.net library, I'll be automatically sending paymentintents etc. with api version 2025-02-24.acacia, so the webhook (web2) will receive events with the same API version, right?
Then you need to use an C# SDK that corresponds to the API version you want to test
I think you misunderstood my question.
I already understand that the C# SDK version corresponds to a specific API version. My question is:
If I update the Stripe.net library on web1, it will start sending requests using API version 2025-02-24.acacia.
Will web2 (which receives webhooks) automatically start receiving webhook events in the same API version (2025-02-24.acacia) as well?
No API version are pinned to the webhook endpoint
So the webhook endpoint will receive events in their API version, nothing will change
I’m not sure that answer is correct or complete.
Right now, my webhook endpoint (web2) is implemented using Stripe.net 41.4.0, which is tied to API version 2022-08-01. However, I consistently receive webhook events in API version 2022-11-15, even though my default API version is set to 2022-08-01.
the only place where I use 2022-11-15 is the (web1) from where I make the main calls, which implements Stripe.dll 41.28.0.0 that is binded to API 2022-11-15...
an extract from my webhook log:
"id": "evt_3R4JicFfKlsrpO4n03X3gz0m",[br] "object": "event",[br] "api_version": "2022-11-15",[br]
This webhood endpoint (we_1MS2q2FfKlsrpO4nJhiDdHOH) is pinned on 2022-11-15. Perhaps you created it via an API call from the app you referred to as "where I make the main calls".
ok now I see what you say, from the edit of the webhook I can see the API version. I don't undertsand... can you tell me which version of Stripe API is binded when using Stripe.net 41.4.0?
Should be 2023-01-05: https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#4140---2023-01-05
I underestand that's the release date, not the Stripe API version. In fact, if you check that page, you can't find a "2022-11-15" API version (which I'm using)
nor a "2022-08-01" which is my default in dashboard
Weird. Perhaps stripe-dotnet doesn't exactly peg to a Stripe API versions
Do you have an example request you sent from your dotnet app?
Because stripe-dotnet is strongly typed, the requests you send align with the API version current at your stripe-dotnet version’s release time. If you want to use a newer or older API version, consider upgrading or downgrading your stripe-dotnet version. Use the stripe-dotnet changelog to find which versions include the API version you need.
yes, I can provide it to you, but I just would need to understand first a final thing: as far as I understand, it doesn't matter which version of API I'm using to create requests (for example, a new PaymentIntent) - what does matter, from the webhook point, is that the version of API I'm using to elaborate the requests behind the webhook do corresponde to the API version defined for that webhook on the Stripe dashboard... is it right? So, even if I create a PaymentIntent with latest Stripe.net version, I'll always receive it with API version specified for the webhook.
I guess you have to manually deduct this based on on changelog.
Correct.
ok, so anything is simplier than expected 🙂 thanks for your time, I'm good to go
Happy to help.
have a nice day/evening, byee