#felipe_api

1 messages ยท Page 1 of 1 (latest)

fluid swallowBOT
#

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

grizzled heart
#

๐Ÿ‘‹ happy to help

#

would you mind elaborating a bit more?

umbral python
#

sure

grizzled heart
#

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

umbral python
#

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

#

but it's not very clear how can I notify the user when a request fails

grizzled heart
#

this is something that happens in your own code

#

not directly related to Stripe

#

there's a lot of ways to achieve this

umbral python
#

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

grizzled heart
#

some people use sockets to send notifications directly to the frontend app

grizzled heart
#

but this is something that you need to build yourself

umbral python
#

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

grizzled heart
#

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

umbral python
#

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

grizzled heart
#

what SDK version are you using?

fluid swallowBOT