#3939phoenix
1 messages · Page 1 of 1 (latest)
Hi, let me help you with this.
Thank you in advance for the help!
Not sure I understand the question. Do you want to know if it's possible to receive events when someone has abandoned the process?
Correct. Looking at the webhook event documentation it says a requires_input event is only sent when a session transitions into the requires_input state. But since a session starts in requires_input when created the flow for abandoned is: start at requires input with no last error -> requires_input with last_error being abandoned
So since it never leaves the requires_input state it looks like there's no way to get a notification from the webhook about this occurring
It might transition into this state after processing unless it goes into verified. This means that after checking the provided information, Stripe concluded that more information is needed. You will get that event then.
But for the Abandoned state the session never gets submitted so processing would never be triggered
Yes, I'd say there's no really a way of knowing that a session was "abandoned". It might be automatically cancelled later, I am not sure, let me check...
Here's a good overview of the session lifecycle: https://stripe.com/docs/identity/how-sessions-work
Yes, that document is what caused me to ask this question. Because in the session object documentation you have this: https://stripe.com/docs/api/identity/verification_sessions/object#identity_verification_session_object-last_error and abandoned is an enum
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So it looks like only way to know if a session is abandoned is to pull the session and check last_error. But that kind of defeats the purpose of having a webhook send events for changes in the session
Also apologies if that comes off a bit harsh. It's my intention to not sound that way, I'm just a bit confused about all this lol
No worries at all, it's not made 100% clear as I see as well now.
Okay, I think you will see the abandoned error when you get the requires_input event.
And that's the issue. I don't believe that event is sent since the session is still in requires_input at creation
Ok, now I see your point. Have you tried testing this?
Yep, I tested with a test API key and while the console says it's been abandoned. In the activity section no event is show for it
As I am testing this, I don't see a way to get notified about the session being abandoned, unfortunately.
That's unfortunate. Do you think this will be addressed in the future at any point soon?
Could you please point me at a vs_xxx where you saw the abandoned error? I can't reproduce it.
I am unfortunately away from my computer right now and just doing this over mobile as I figured it would have been a quick question. Apologies for that.
I'll be away most of the day unfortunately, due to some family circumstances. Since it seems like it's not possible/reproducible I'll just work under the assumption it's not possible
No worries. I suggest you write in to Stripe Support when you get a chance and provide all the details. My engineering team will look into it, and transfer your full feedback to the team that works on this feature: https://support.stripe.com/?contact=true
Thank you so much for your time