#sakshi_code
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/1344260731058651218
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sakshi_code, 1 day ago, 16 messages
hi there!
Hello
So, wanted to check on this if we can only upgrade this "BalanceTransaction API", which is used by our service keeping other APIs in the current version?
No, that's not possible
The problem lies with your SDK version (28.x.x) and your webook/account API version โ there's a mismatch:
- Events, like this one, are generated in
2020-08-27 - The Java SDK version you're using in your wbehook,
28.x.x, is pinned to2024-10-28.acacia
The versions need to match otherwise the deserialization will fail
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Why are you using the 28.x.x version if your account, webhooks and requests use 2020-08-27? It doesn't make sense to do that
Easiest solution would be to downgrade to 20.x.x in your webhook code as that is pinned to 2020-08-27: https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md#2000---2020-08-31
Ok I will check it. Thanks
Can I use "20.136.0" Java SDK version for API version "2023-10-16".
Why do you care about 2023-10-16? Your account doesn't use that version from what we can see?
But no, all 20.x.x versions are pinned to 2020-08-27
That's how it works โ major versions, 20, 21, etc, are pinned to a specific API version
This is the Stripe API version we are using right?
Yes, but that differs to the evt_xxx you shared yesterday: #1343551899680505917 message
In which case you need to use a release from 24.x.x: https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md#2400---2023-10-16
edit: fixed the version
So there are going to be multiple events like I provided which might have different API versions so what is the possible solution for version of Java SDK?
If you're handling events generated with different API versions then you're going to need to be smart about how you handle that. Either different code paths for each webhook/API version, or you can use 'unsafe' deserialization for events with a different version: https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v8----version-upgrade#best-effort-field-getter-method