#felipe_api
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/1332295926735306784
๐ 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.
- felipe_code, 1 day ago, 24 messages
- felipe_code, 2 days ago, 16 messages
sure
when you receive a webhook event on your endpoint you can do whatever you want with it
so I'm not sure what's the real question is
I have a webhook that handles all the stripe events right now
but I used a try exception block around all the webhook, since I have SignatureVerification errors, StripeInternalErrors and many others
Here if you want to take a look
but it's not very clear how can I notify the user when a request fails
this is something that happens in your own code
not directly related to Stripe
there's a lot of ways to achieve this
but connected to a specific user? What I wanted to do was to notify them on email when this things happen, or redirect to a different page
some people use sockets to send notifications directly to the frontend app
yes this is another way of doing that
but this is something that you need to build yourself
sure but the problem is:
- If my event creation fails for some reason, how can I get info from the user
to send an email for example
If my event creation fails for some reason, how can I get info from the user
this should never happen
and if it does this means that you need to correct your code
since the event failed (you didn't respond with an HTTP 200 OK response) we will retry to send you the webhook again https://docs.stripe.com/webhooks#retries
ok
another question
val session = event.data.object as Session
I know that this is depracated
val dataObjectDeserializer = event.dataObjectDeserializer
val stripeObject = dataObjectDeserializer.getObject()
but when I tried using the new one theobject is always null
what SDK version are you using?