Base solution for your next web application
Open Closed

Stripe Version Issue #8102


User avatar
0
golilysolutions created

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)
  • User Avatar
    0
    ryancyq created
    Support Team

    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

  • User Avatar
    0
    golilysolutions created

    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

  • User Avatar
    0
    golilysolutions created

    and what is ANZ ?

  • User Avatar
    0
    maliming created
    Support Team

    and what is ANZ ?

    ANZ is asp net zero.

  • User Avatar
    0
    musa.demir created

    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.

  • User Avatar
    0
    musa.demir created

    See: https://github.com/aspnetzero/aspnet-zero-core/issues/2725

  • User Avatar
    0
    musa.demir created

    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.