#Castellino Software

1 messages · Page 1 of 1 (latest)

warm iglooBOT
grizzled bloom
#

Can you share the event id?

novel star
#

evt_1NE64iJbNwX2Hvoc8hIwJqzr

grizzled bloom
#

Hm I see that it sent the 2022-11-15 version to your endpoint

novel star
#

I deserialize the event in a java class and what i get is:

#

<com.stripe.model.Event@1365760293 id=evt_1NE64iJbNwX2Hvoc8hIwJqzr> JSON: {
"account": null,
"api_version": "2020-08-27",
"created": 1685605056,

#

The problem is that after deserializing the session if I try to get the PaymentIntent it doesn't find it due to the different api version

grizzled bloom
#

If you use our Java, .NET or Go client libraries, make sure that you configure the endpoint API version to use the same API version pinned in the client. Otherwise, you might be unable to de-serialize the event objects.

#

What client api version are you using in the code?

novel star
#

I use your java library (downloaded via maven), version 22.7.0

grizzled bloom
#

No what api version do you set in the code?

#

Or do you not?

novel star
#

I use Stripe.API_KEY in all my calls, so 2022-11-15

grizzled bloom
#

Hm

#

You can see the webhook attempts and expand each one

#

The account default api version is what we sent

novel star
#

Ty, i'll investigate

#

Just a question

#

It's true that event api version follow the webhook api version?

#

The webhook is created programmatically, setting the api version

#

I set the same version in javascript objetct too, on the page that receive Stripe session id from my server and redirect to gatewey

grizzled bloom
#

Yes the event's api version follows the version you set on the webhook endpoint

novel star
#

ok, many thanks 🙂