#Velix - checkout recovery
1 messages ยท Page 1 of 1 (latest)
Using the expire endpoint: https://stripe.com/docs/api/checkout/sessions/expire
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Have you tried that?
It doesn't work: "Only Checkout Sessions with a status in ["open"] can be expired. This Checkout Session has a status of expired."
Check this one: cs_test_a1S8s8Vzz7U0QEO3OLbroZmsSQJwXdsSblNdORtHoCiOra5OxThaXJpofG
That sounds like you're using an already expired session, not the new open one
yeah, but I can't close the new one.
I'm getting this recovery URL: https://buy.stripe.com/r/test_YWNjdF8xSmpRWmhHcG14T2xhcXgwLF9NeXVJWDhLM256aW5tM1loSm1QYUJTMnZmN3hDRFRN0100uMZOnl3c
But I don't get a new session ID
Hmm ok let me take a look
Ahh... I need to follow the link and extract it from the redirection URL? Hell ๐
I think I got it now. This is like a "portal" link. Within a month, this link can be reused to create several sessions, which live for 1 day again.
So there is no "new session". it gets generated, when clicking this link.
Oh dear, it's way more complicated.
This seems to generate the new session: https://api.stripe.com/v1/payment_pages/for_rlink
Right thats what seems to happen yes based on the docs:
https://stripe.com/docs/payments/checkout/abandoned-carts#webhook
Velix - checkout recovery
hmm... the problem is that this recovery link lives for 30 day.
days*
But I'd love to kill it after 2 weeks.
Seems like this isn't possible?
No, this is not currently supported, but I can share the feedback.
The alternative here would be listening for the expiry events and implementing your own recovery flow for re-creating the cart during the window you want.
The latter -- an endpoint that creates a new session you control, not a manual payment integration