#adelvalle
1 messages ยท Page 1 of 1 (latest)
Hello,
Hi there! How can I help you?
I'm using a webhook
Event evento = Webhook.constructEvent(jsonBody, sigHeader, _configuration.endPointSecret());
Optional<StripeObject> session = evento.getDataObjectDeserializer().getObject();
and now, my session is empty
Optiunal.empty
sorry, Optional.empty,
but evento has value
why is the session empty???
Just to clarify, which language/framework is this?
I would also appreciate if you could share an event ID so I could look into it on my side.
evt_...
"id": "evt_1M2AKKK8ASnZKS7J25yYdput",
What version of the stripe-java are you using?
The webhook event seems to be of API version 2022-08-01, and there were some breaking changes since then, you need to update your stripe-java to at least version 21.0.0: https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md#2100---2022-08-02
I have changed the version, and I have the same problem
๐ taking over for my colleague. Let me catch up.
ok
hi????
I'm sorry for the delayed response
I haven't been able to find the root cause of your problem yet
would you mind testing this code snippet as is https://stripe.com/docs/webhooks#webhook-endpoint-code ?
ok! thankyou