#sadeghiamir_webhooks

1 messages ยท Page 1 of 1 (latest)

jagged swiftBOT
#

๐Ÿ‘‹ 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.

blazing laurel
#

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

jagged swiftBOT
blazing laurel
#

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.

mellow wyvern
#

hi I used the 25.7.0 version. this issue exist. I upgraded sdk for resolving this issue.

rough scaffold
mellow wyvern
#

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",

rough scaffold
#

What is the issue exactly ?

#

Your API didn't response I see a timeout on this event evt_1Psi76GjGngNzw7y0lO77S5e

mellow wyvern
#

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:

rough scaffold
#

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 ?

mellow wyvern
#

<dependency>
<groupId>com.stripe</groupId>
<artifactId>stripe-java</artifactId>
<version>26.7.0</version>
</dependency>

rough scaffold
#

OK, let's start from scratch.

#

Also you can use stripe listen --forward in order to do your tests (not using ngrok)

jagged swiftBOT