#davidthorand

1 messages ยท Page 1 of 1 (latest)

fleet waveBOT
#

Hello! We'll be with you shortly. 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.

gleaming scarab
#

You mean a webhook event?

ocean whale
#

Yes

gleaming scarab
ocean whale
#

I see. My idea was to listen for a checkout cancel event and assign some sort of default price to those customers. But if there is no event for that I gotta do that differently then

gleaming scarab
#

Yeah, you don't cancel checkout sessions. You expire them. So you'd want to build your workflow around that instead

ocean whale
#

Won't work either since the issue is that nothing tells me that the customer canceled (= abandoned) their checkout

gleaming scarab
ocean whale
#

Yeah, sorry. Though "canceled" was the right term since you also specify a cancelUrl when creating a checkout session. My bad ๐Ÿ˜„

Let me check that

#

I don't think this will work in my case. What I want to do is to assign a default (free) subscription to these users

gleaming scarab
#

Ahhhh, gotcha. Yeah, you would have to handle that via custom code and routing on your end then.

#

Likely by setting the cancel_url to a page with a form that allows customers to create a free subscription

ocean whale
#

Yeah, I'll probably redirect the user to something like /?checkout-session=cancel and send a request which does the rest.

Just hoped I can hook into a webhook event and prevent that extra step in the frontend ๐Ÿ™‚

#

Thanks anyway, always great talking to you guys here!

#

Maybe it's even better to have the frontend involed so the user can be informed about what happend. Might be kinda confusing to abandon the checkout and enter the application anyway

gleaming scarab
#

Yeahhh, that's fair. Best of luck all the same! Happy to help