#manny-manny-2023_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Could you please share more details about the issue youa re facing ?
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
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:
is there a way to upgrade endpoint only in test mode and not in live mode?
By specifying the corresponding API version:
https://docs.stripe.com/api/webhook_endpoints/create#create_webhook_endpoint-api_version
Yes you can do this only for test mode (you need to make the API call that creates the webhook endpoint using your test secret key)
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?
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
You need to make sure that the Java SDK version is using the same Stripe API with the API version of your webhook endpoint.
ok
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
Where do you see that?
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
Yes, because you're using 28.4.x, 2025-02-24.acacia is the correct version
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?
Yes, you'll need to do it via the API. The Dashboard only allowed specific API versions
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?
You need to add api_version param: https://docs.stripe.com/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.
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
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