#manny-manny-2023_webhooks

1 messages ¡ Page 1 of 1 (latest)

atomic roostBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1394979911302643804

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

patent sundial
#

Could you please share more details about the issue youa re facing ?

unkempt obsidian
#

Hi our current stripe webhook event version is 2022-11-15 but the webhook deserializer of event object is not working as we are using stripe java version is 28.4.0

patent sundial
#

You need to upgrade your webhook endpoint API version

#

To do so, you can delete your existing webhook endpoint

#

and create new one via API:

unkempt obsidian
#

is there a way to upgrade endpoint only in test mode and not in live mode?

patent sundial
unkempt obsidian
#

if i click on upgrade version in workbench for current webhook will it work?

#

do i need to again update stripe java version too, to match it?

patent sundial
#

if i click on upgrade version in workbench for current webhook will it work?
It won't let. you choose a specific API version, ideally you should use API call

patent sundial
unkempt obsidian
#

ok

patent sundial
#

Stripe Java SDK 28.X iis pinned to the Stripe API version 2024-09-30.acacia

#

So you need to create a webhook endpoint with that same API version

unkempt obsidian
#

ok one min please

#

its saying 2025-02-24.acacia so i neeed to use this right?

atomic roostBOT
spiral imp
#

Where do you see that?

unkempt obsidian
#

System.out.println("Verion: " + event.getApiVersion());
System.out.println("sversion: " + Stripe.API_VERSION);

#

from these two

#

Verion: 2022-11-15
sversion: 2025-02-24.acacia

spiral imp
#

Yes, because you're using 28.4.x, 2025-02-24.acacia is the correct version

unkempt obsidian
#

if i am creating new destination in workbench test mode its allowing me only latest 2025-06 version

#

we have to delete it and create new one?

spiral imp
#

Yes, you'll need to do it via the API. The Dashboard only allowed specific API versions

unkempt obsidian
#

WebhookEndpointCreateParams params =
WebhookEndpointCreateParams.builder()
.addEnabledEvent(WebhookEndpointCreateParams.EnabledEvent.CHARGE__SUCCEEDED)
.addEnabledEvent(WebhookEndpointCreateParams.EnabledEvent.CHARGE__FAILED)
.setUrl("https://example.com/my/webhook/endpoint")
.build();
WebhookEndpoint webhookEndpoint = WebhookEndpoint.create(params); can we do like this as suggested?

spiral imp
unkempt obsidian
#

one final question if we disable the previous webhook will it still allow new webhook with same endpoint? and secondly in the api how to mention flag test mode so this webhook is there only for test mode onl

spiral imp
#

one final question if we disable the previous webhook will it still allow new webhook with same endpoint
Yes, you can have multiple webhooks with varying statuses that point to the same endpoint/URL
and secondly in the api how to mention flag test mode so this webhook is there only for test mode onl
You don't you just create it with your test API key