#cgy
1 messages · Page 1 of 1 (latest)
dotent? I am not sure. I use low-code subscription
What is this: event.getDataObjectDeserializer().dataObjectDeserializer.getObject().isPresent()? Is this code you wrote?
Yes
I copy this one.
Last year it works fine in our sys. This time I use it in another sys, but it failed
I fill the form and the event I receive is false
Hey! Taking over for my colleague. There is probably a mismatch in your API version and your SDK you are using
what Java SDK version you are using ?
But I use compile("com.stripe:stripe-java:22.0.0")
Last year it works fine in our sys. This time I use it in another sys, but it failed
What is the difference between two systems ?
JDK? JDK 1,8
The same I think. The same jdk. The same Stripe version
Last year Stripe version is lower, a week ago, I update to 22.0.0 to use api SetupIntent
This time I want to use Subsctiption, I copy this version to new sys
Actually when I read the docs "https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout#create-session" it recommend 22.0.0 as well
What updates you made ? from what version to what version ?
Update stripe version. Form 20.66.0 yo 22.0.0
I am sorry. But I am in a hurry. Can find why this?
Did you upgraded your Stripe API version too ?
You need to upgrade your Stripe API version
This is the Stripe SDK version
You need to upgrade your Stripe API in your dashboard:
https://dashboard.stripe.com/developers
Because in each SDK, the Stripe API is pinned to it.
You upgraded the SDK without upgrading your API version
How to do this
You need to upgrade your API version to 2022-11-15 now you are using 2020-08-27 versino
In API version section
I can't find this one on my dashboard
As you say I should update api version on my dashboard, but why another use the same 22.0.0 works well
I use the same webhook to test
And same apiKey, I think it should act the same
?
No 22.0.0 requires API version 2022-11-15 for webhooks otherwise you'll have the issue your are facing now. In the documentation, this is mentioned in the comments of the else section also.
Are you the owner of the Stripe Account?
Scroll down to this section
yes
Will it be any unforseen problems to our old sys, although the Stripe version is 22.0.0
You mean the Stripe Java SDK version is. 22.0.0? Stripe API and SDK versions are tow different things. You need to align all your system(s) to use same SDK and API version for the same Stripe Account.
API I just update to this
Stripe java SDK version 22.0.0 requires API version 2022-11-15. Make sure to check the changelog of each SDK version before upgrading
You need to recreate the webhook endpoint also
In order to match your new API version
update api version and re-create webhook?
Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.