#jian.li
1 messages · Page 1 of 1 (latest)
API version of a Webhook endpoint can't be updated after creation. You'd need to create a new one with new version.
But on the create page, I don't find a place to select the version.
This is the new account I signed up for, there is no place to select a version, but our original account used version 2022-11-15, so the new account must also use version 2022-11-15.
Dashboard doesn't support selecting API version. You can specifying API version by creating a Webhook endpoint using 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.
Without using the 2022-11-15 version, the webhook on the java side reports a signature error.
Or is there any other way, how can the java sdk support multiple versions of webhook.
Have you tried using API to create Webhook endpoint with 2022-11-15 as suggested earlier? 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.
Each stripe-java library only supports one API version as Java is a strongly typed language
Not yet, as we've been using the 2022-11-15 version originally
There are two options here:
- Upgrade stripe-java to the latest version that supports 2023-10-16 (all accounts have to be updated to 2023-10-16); OR
- Create the Webhook endpoint with 2022-11-15 using API
If it's a wehook that has been created via a page, can I change the version number using the api?
No! As mentioned earlier, API version can't be changed after creation. It can only be set at creation.
So the original incorrect version that was created will just have to be deleted?
Yup, that's right!
Okay. Thank you.