#verymike-checkout-cancelled
1 messages · Page 1 of 1 (latest)
@tame egret I'm confused, if the session is cancelled there's nothing to redirect to.
hm
so when user click this <- Back, the session is dead and there's no way to get back to it?
I mean I am retrieving the session and there's something in there. So is there a way to get back to this session?
Ah that's a completely different flow okay
if they click that button they just go back to your cancel_url but no the Session is not canceled, in that case you can always redirect them to the same URL you did the first time
How do you send a customer to Checkout today in the first place?
yes
const session = await stripe.checkout.sessions.create({ // stuff )}
res.send(session.url)
and so client redirects to this url
but when I do stripe.session.retrieve({{session_id}}) I can't see url property in there
it's null
I just tested and it's right there for me
Is the session already expired/canceled for real? What's the Session's status?
I guess I am dumb enough to do so
that Session has already been successfully paid, there's no reason to redirect the customer to it
I know.... I see. That's why I said I am dumb enough
I was trying to build a cancel page using the object of completed session
ah gotcha, nothing dumb there, there are many parts of the API to look at that are inter-related but not well documented 😅
basically the same session I was using for building success page