#3939phoenix

1 messages · Page 1 of 1 (latest)

old sirenBOT
fierce nimbus
#

Hi, let me help you with this.

white copper
#

Thank you in advance for the help!

fierce nimbus
#

Not sure I understand the question. Do you want to know if it's possible to receive events when someone has abandoned the process?

white copper
#

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

fierce nimbus
#

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.

white copper
#

But for the Abandoned state the session never gets submitted so processing would never be triggered

fierce nimbus
#

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...

white copper
#

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

fierce nimbus
#

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.

white copper
#

And that's the issue. I don't believe that event is sent since the session is still in requires_input at creation

fierce nimbus
#

Ok, now I see your point. Have you tried testing this?

white copper
#

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

fierce nimbus
#

As I am testing this, I don't see a way to get notified about the session being abandoned, unfortunately.

white copper
#

That's unfortunate. Do you think this will be addressed in the future at any point soon?

fierce nimbus
#

Could you please point me at a vs_xxx where you saw the abandoned error? I can't reproduce it.

white copper
#

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

fierce nimbus
#

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

white copper
#

Thank you so much for your time