#michael-1219_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/1303619204276289629
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- michael-1219_webhooks, 1 day ago, 50 messages
- michael-1219_webhooks, 4 days ago, 46 messages
- michael-1219_webhooks, 5 days ago, 54 messages
hi there
you can see my thread in the past
the webhook version pined to either 2024.6.20 or 2023.10.8, are not work
It's kind of lengthy and not sure what is your current latest state. Would be appreciated if you could put a summary
the method of getDataObjectDeserializer work as intended, I got the info from call-back
but the normal no, not
I've been told that this problem always come from version mismatched
but pined to versino your leagues told me, do not resolve the problem
you can see the sniping of this part
I even cant reach this line of code
it is null
hello
what do you think should I go forward
๐
Hmm not entirely sure but what do you mean by this?
but the normal no, not
the normal one means this part of code
sepcificly this one
comparing to unsafe one
So
event.getDataObjectDeserializer()
work, but
event.getDataObjectDeserializer().getObject().get().toJson()
doesn't work?
yes
content is null - event.getDataObjectDeserializer().getObject().get().toJson()
Sure but why do you need the later code? If the first code work, why wouldn't just go with it?
sorry for confusing
I mean this part of code work as intented
but this part do not
can you tell me the difference between unsafeDeserializer(), and Deserializer()?
Your 2 images are the same, aren't they?
this is the one do not work as intented
I am sorry, Qaq
so the escape from if, going into else
the unsafeDeserializer(), method
Ah you mean you need to use deserializeUnsafe()?
yes, because Deserializer(), do not work as intented
I am looking forward to use Deserializer()
Because, I thought, the unsafe one is unsafe
do a zoom for you to see my screen help?
Sorry we can't provide zoom support here
thats fine
If you use event.getDataObjectDeserializer().getObject().get(), what value do you see exactly
(removing toJson())
null
wait
No signatures found matching the expected signature for payload
this is what i got
That's before that line
Signature is the error on constructEvent
To save time, you can try this exact example in Java https://docs.stripe.com/webhooks/quickstart?lang=java
It should work for you
you mean the problem came from "constructEvent"
I check the doc first, lol
I thought my code is as same as the code in the doc
Before checking
and I construct my code follow the doc by the way
hello
evt_1QI46FK4vaWYtFnypg8XsG20
you can see the event
are you still there?
looking forward your help !!!
Still here, sorry
So you used the exact same code as the Doc?
What error do you have for now?
Do you have multiple webhook endpoint?
Are you using the exact endpoint secret configured on your Dashboard here?
When I use StripeObject object = event. GetDataObjectDeserializer () deserializeUnsafe (); When access to the event. The getDataObjectDeserializer () when I use the data in the event the getDataObjectDeserializer (). The getObject (). The get (); The console will report an error, and the error message is No value present
Sorry I didn't understand the last sentence
sorry, I mean the signiture problem has been solved. The problem is "no value present' when using method getDataObjectDeserializer (). (what is different when using deserializeUnsafe ()
Glad to hear Signature error is resolved.
When you were using deserializeUnsafe(), you also used it after getDataObjectDeserializer(), correct?
Could you clarify again, which is working and which is not working (suppose there is no Signature Error any more)
the problem might come from get()
i thought
I cant get() any value
I dont know why
๐
๐ค
hellp
Sorry it's still confusing. Which is working and which is not working?
Given that you use the Stripe example code, and no Signature error?
yes
Can you screenshot your current code, and put a breakpoint on the deserializeUnsafe() line? Which value can you inspect?
Sorry I am confused. This screen recording doesn't look like our example code. Have you tried to download our example code from https://docs.stripe.com/webhooks/quickstart?lang=java ?
the chinese log may make you confused
but if you take a deeper sight, you can find they are same
I see a lot of metadata and orderId. I meant you could just try the exact code from our Doc, no edit, first to see if it works
can you tell me the different bewteen normal one and unsafe one
deserializeUnsafe()
Please try the exact code from our Doc first, before thinking of deserializeUnsafe
๐ taking over for my colleague. Let me catch up.
you can see the problem in the video
can you tell me the different bewteen normal one and unsafe one
please give me a couple of minutes to go over the whole thread and catch up
24
full SDK version please
24.0.0
i dont think this problem come from api version, to be honest
Previously, your team had guild he to check them
it's not the API version I'm asking about
I'm asking about your stripe-java SDK version
btw can you share the event ID as well?
we_1QHg8mK4vaWYtFnyiB1mLmgD
evt_1QI4KPK4vaWYtFny7qnhG7ww
i have tried : 2 version of webhook
I would like to just cover my basics if you don't mind
can you tell me the different bewteen normal one and unsafe one
awesome
can you answer this question? :can you tell me the different bewteen normal one and unsafe one