#renlaer057

1 messages · Page 1 of 1 (latest)

formal haloBOT
#

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

restive void
#

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

void aurora
restive void
#

But how do we upgrade to 2023-08-16?

#

So our current version is already 1.18, what should I upgrade to?

void aurora
#

API version and CLI version are two different things. The error here refers to the API version, not CLI version

restive void
#

OK

#

I can upgrade it, right?

void aurora
#

Yup, you can upgrade it

restive void
#

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?

void aurora
#

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

#

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"?

restive void
#

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

void aurora
#

Alternatively, you should use option 1 if you wish to only test in test mode

restive void
#

Option 1, how do I do it, is there documentation?

#

How to create it? create a network edge (like ngrok) to the local project

void aurora
#

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

restive void
#

Got it, then I need to create a stripe webhook endpoint, right? instead of local listener

void aurora
#

Yes, correct!

restive void
#

When I create a public endpoint, I cannot select 2023-08-16. It only has 2023-10-16.

restive void
void aurora
restive void
#

So can I upgrade to the latest version directly on the dashboard?

#

Will he use it normally?

void aurora
restive void
#

Well, if I want to create a version of 08-16, I need to ask the developers to do it via command right?

void aurora
#

Yup, it can only be done via API as suggested earlier