#Aarti MusicHub
1 messages ยท Page 1 of 1 (latest)
I'd recommend creating a new Webhook endpoint with the latest version, so that the event will be sent with latest version
I do not see a way to add a new webhook endpoint with a specific version. It always point to the main version set in dashboard
and since I updated the main verison, the webhook endpoint already is pointing to the latest version but that is only for new events from now
the old events that are sent with old version are constantly being retried but it will never be successful
I can share the webhook ID if you would like to look into it
Yup, sharing Webhook ID will be helpful for me to investigate
we_1MTmjqFa6nOwNUem44zWiDuY
as you can see, all failed events have "api_version": "2020-08-27", but the webhook is already at "2022-11-15" and our code is also only handling "2022-11-15" version payloads, so it fails with invalid payload version
๐ If you create a webhook endpoint via API, you would be able to specify the API version 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 should I create a webhook endpoint with an old version now? how will that help?
Or maybe you can help me with handling two different versions in code, using the stripe-java lib
Um I am looking into your webhook endpoint. Why were those events sent in old API version? Probably they are retries from when your endpoint still in previous version?
yes exactly
I would assume either there's a way to resend them with the new version or handle this old version payload (along with the new one) in code
So now you have the endpoint in new version, and a bunch of events being retried from a payload before it's changed (by changing the API version in Dashboard)
yes