#jian.li

1 messages · Page 1 of 1 (latest)

sharp wigeonBOT
crude slate
#

API version of a Webhook endpoint can't be updated after creation. You'd need to create a new one with new version.

smoky ivy
#

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.

crude slate
smoky ivy
#

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.

crude slate
#

Each stripe-java library only supports one API version as Java is a strongly typed language

smoky ivy
#

Not yet, as we've been using the 2022-11-15 version originally

crude slate
#

There are two options here:

  1. Upgrade stripe-java to the latest version that supports 2023-10-16 (all accounts have to be updated to 2023-10-16); OR
  2. Create the Webhook endpoint with 2022-11-15 using API
smoky ivy
#

If it's a wehook that has been created via a page, can I change the version number using the api?

crude slate
#

No! As mentioned earlier, API version can't be changed after creation. It can only be set at creation.

smoky ivy
#

So the original incorrect version that was created will just have to be deleted?

crude slate
#

Yup, that's right!

smoky ivy
#

Okay. Thank you.