#sadeghiamir_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/1278277488849588295
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! it's null if the event you're receiving is in an API version different from the version your version of stripe-java can handle
26.x.x uses our latest API version, so the easiest solution is to go to your Dashboard, create a new webhook endpoint for your URL, choose "Latest API version" when creating it, and use that endpoint.
hi I used the 25.7.0 version. this issue exist. I upgraded sdk for resolving this issue.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Between this is a good guide for understanding webhook versioning:
https://docs.stripe.com/webhooks/versioning
I upgraded version of api for this end point. but result is endpoint has problem yet
"id": "evt_1Psi76GjGngNzw7y0lO77S5e",
"object": "event",
"api_version": "2024-06-20",
What is the issue exactly ?
Your API didn't response I see a timeout on this event evt_1Psi76GjGngNzw7y0lO77S5e
I run server in local and in debug mode with ngrok. I stop server at this line
if (dataObjectDeserializer.getObject().isPresent())
this if return false value.
webhook event in my server is:
You need to use at least Stripe Java SDK 26.0.0, are you using a correct version pinned to the API version 2024-06-20 ?
<dependency>
<groupId>com.stripe</groupId>
<artifactId>stripe-java</artifactId>
<version>26.7.0</version>
</dependency>
OK, let's start from scratch.
Could you please download this quickstart:
https://docs.stripe.com/webhooks/quickstart?lang=java
And simply update your API secret key and webhook secret and run it ?
Also you can use stripe listen --forward in order to do your tests (not using ngrok)