#renlaer057
1 messages · Page 1 of 1 (latest)
Hello renlaer057, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• renlaer057, 3 days ago, 9 messages
• renlaer057, 3 days ago, 9 messages
• renlaer057, 4 days ago, 46 messages
Received event with API version 2022-11-15, but Stripe.net 42.8.0 expects API version 2023-08-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.
at Stripe.EventUtility.ParseEvent(String json, Boolean throwOnApiVersionMismatch) in //src/Stripe.net/Services/Events/EventUtility.cs:line 47
at Stripe.EventUtility.ConstructEvent(String json, String stripeSignatureHeader, String secret, Int64 tolerance, Int64 utcNow, Boolean throwOnApiVersionMismatch) in //src/Stripe.net/Services/Events/EventUtility.cs:line 128
at Stripe.EventUtility.ConstructEvent(String json, String stripeSignatureHeader, String secret, Int64 tolerance, Boolean throwOnApiVersionMismatch) in /_/src/Stripe.net/Services/Events/EventUtility.cs:line 88
at Renlaer.Services.ThirdPartyPay.Stripe.ThirdPartyPayWebHookService.WebHookAsync() in D:\code\Renlaer\Renlaer\Services\ThirdPartyPay\Stripe\ThirdPartyPayWebHookService.cs:line 162
Our webhook received this error and we want to upgrade the version
The latest version of Stripe CLI is v1.18.0 that you're already on the latest version: https://github.com/stripe/stripe-cli
But how do we upgrade to 2023-08-16?
So our current version is already 1.18, what should I upgrade to?
You can upgrade the API version in your Dashboard: https://stripe.com/docs/upgrades#how-can-i-upgrade-my-api
API version and CLI version are two different things. The error here refers to the API version, not CLI version
Yup, you can upgrade it
Is it enough to update the nuget package?
I can't click the upgrade button on the dashboard, I turned on the test mode
Now my test mode is stopped because I can't use webhooks and I can't upgrade, what do I do?
Unfortunately, stripe listen can receive events based on your account's default API version or the latest version. There're two options here :
Option 1
- create a network edge (like ngrok) to the local project
- create a test webhook that registers that public endpoint, and by specifying the target API version [0]
- use stripe trigger to simulate and test
**Option 2 **
- We can upgrade the default API version of your Stripe account
[0] https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Now my test mode is stopped because I can't use webhooks and I can't upgrade, what do I do?
What do you mean by "test mode is stopped"?
My webhook in test mode got the error like mentioned above so it doesn't work properly anymore
Can I choose option 2 and have you help me upgrade the test mode API version? Upgrade it to 2023-08-16
I just need to upgrade the webhook version in test mode
The option 2 will update both test and live mode and this can be done in your own Dashboard: https://dashboard.stripe.com/developers
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Alternatively, you should use option 1 if you wish to only test in test mode
Option 1, how do I do it, is there documentation?
How to create it? create a network edge (like ngrok) to the local project
This is outside of Stripe scope for creating a network edge. I'd recommend checking online how to create a netword edge like ngrok to your local project
Got it, then I need to create a stripe webhook endpoint, right? instead of local listener
Yes, correct!
When I create a public endpoint, I cannot select 2023-08-16. It only has 2023-10-16.
But according to the previous error message, it asked me to upgrade to 2023-08-16, what should I do?
As mentioned previously, the API version of a Webhook endpoint not listed can only be set via API: https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So can I upgrade to the latest version directly on the dashboard?
Will he use it normally?
If you update to the latest version 2023-10-16 for Webhook endpoint, you should also update the stripe-dotnet library in your project to 43.0.0: https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md
Well, if I want to create a version of 08-16, I need to ask the developers to do it via command right?
Yup, it can only be done via API as suggested earlier