#cgy

1 messages · Page 1 of 1 (latest)

brave iceBOT
limber sand
#

Hi there!

#

Are you using stripe-dotnet? Which version?

slender vapor
#

dotent? I am not sure. I use low-code subscription

limber sand
#

What is this: event.getDataObjectDeserializer().dataObjectDeserializer.getObject().isPresent()? Is this code you wrote?

slender vapor
#

Yes

#

I copy this one.

#

Last year it works fine in our sys. This time I use it in another sys, but it failed

brave iceBOT
slender vapor
#

I fill the form and the event I receive is false

glad goblet
#

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 ?

slender vapor
#

But I use compile("com.stripe:stripe-java:22.0.0")

glad goblet
#

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 ?

slender vapor
#

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

glad goblet
slender vapor
#

Update stripe version. Form 20.66.0 yo 22.0.0

#

I am sorry. But I am in a hurry. Can find why this?

glad goblet
#

Did you upgraded your Stripe API version too ?

slender vapor
#

What do you mean, I am not very undersatand.

glad goblet
#

You need to upgrade your Stripe API version

glad goblet
#

Because in each SDK, the Stripe API is pinned to it.

#

You upgraded the SDK without upgrading your API version

glad goblet
#

You need to upgrade your API version to 2022-11-15 now you are using 2020-08-27 versino

glad goblet
slender vapor
#

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

#

?

glad goblet
#

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.

glad goblet
slender vapor
#

Yes

#

where is api section

glad goblet
#

Scroll down to this section

slender vapor
#

Do you mean this one ?

glad goblet
#

yes

slender vapor
#

Will it be any unforseen problems to our old sys, although the Stripe version is 22.0.0

glad goblet
#

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.

slender vapor
#

My Stripe Java SDK version is 22.0.0.

slender vapor
glad goblet
slender vapor
#

It still return false.

glad goblet
#

You need to recreate the webhook endpoint also

#

In order to match your new API version

slender vapor
#

update api version and re-create webhook?

glad goblet
balmy coral
#

Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.