Hi
I got an exception error in an method 'Webhooks' in StripeControllerBase, which is a Stripe.StripeException.
the error says "Received event with API version 2019-11-05, but Stripe.net 27.16.1 expects API version 2019-05-16.
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. "
how should I solve this issue in any way?
my dev env is Asp Net Core Angular v8.0.0.
Thanks
7 Answer(s)
-
0
Hi, looks like ANZ default stripe dot net library is still at v27.
To support Strip API Version 2019-11-05, stripe dot net need to be upgraded to v33.
https://github.com/stripe/stripe-dotnet/releases/tag/v33.0.0
You can upgrade stripe library in your solution to support the last API version
-
0
Hi
Thanks for the quick reply.
I think that Asp Net Core Angular v8.0.0 have beed tested based on stripe dot net 27.16.1.
without a test on your side, is it okay with ugrading to latest API version?
hopefully, nothing happed to payment process on my side.
Thanks
-
0
and what is ANZ ?
-
0
and what is ANZ ?
ANZ is asp net zero.
-
0
Upgrading stripe to lastest version is in process. (Actually its done but waiting for one logic.) It will be upgraded to latest version with checkout payment system.
-
0
See: https://github.com/aspnetzero/aspnet-zero-core/issues/2725
-
0
Be sure your stripe web hook api version is same with nuget package api versions. The reason you get that error is they are not equal. Also we published ASP.Net Zero 8.1 which includes stripe update, you can check it out.