#ArunBhat

1 messages · Page 1 of 1 (latest)

hoary foxBOT
misty jolt
hoary foxBOT
junior cloud
#

req_fsqWrkFqnKFERA

#

is this the one ?

#

Its working fine with the api version
2022-11-15

woeful frigate
#

I am seeing that request is succeeded

#

Can you screenshot the exact location you are having errors?

junior cloud
#

We are using the stripe dll version 41.4.0

#

: 'Received event with API version 2023-10-16, but Stripe.net 41.4.0 expects API version 2022-11-15. We recommend that you create a WebhookEndpoint with this API version. Otherwise, you can disable this exception by passing throwOnApiVersionMismatch: false to Stripe.EventUtility.ParseEvent or Stripe.EventUtility.ConstructEvent, but be wary that objects may be incorrectly deserialized.'

#

got this while debugging

#

is 41.4.0 does not support api version
2023-10-16
?

#

we are using "EventUtility.ParseEvent(response)" this to deserialize

#

The request is getting succeeded, but parsing is the problem

woeful frigate
#

Is that webhook event?

#

I see

junior cloud
#

Yes we are using webhook, charge.suceeded event

#

we are using the stripe version 41.4.0 version, unable to parse the webhook request

#

we implemented stripe with api version
2022-11-15, but our client uses
2023-10-16

woeful frigate
#

Yep the error is kinda straightforward, isn't it 🙂 The webhook endpoint is on 2023-10-16, while your .NET SDK supports an older API version

junior cloud
#

which dll we should use to support both the api versions ?

woeful frigate
#

No .NET is a SDK tighted to one version. It's a complied language and that's how it works

junior cloud
#

i did not understand your response, my question is which stripe dll version should we use to make both 2022 and 2023 webhook to work ?

woeful frigate
#

I mean there is no version like that. There is only version for 2022 webhook, and version for 2023 webhook separately

junior cloud
#

ok thank you, which version to use for 2023?

woeful frigate