#Mike.7189-cancel

1 messages · Page 1 of 1 (latest)

pseudo kayak
#

@bleak socket it's up to you, the only reason the success URL might have a session ID is in our examples we put the magic {CHECKOUT_SESSION_ID} string in it(it's not built in or inherent to the success URL, it's just how the examples do it), you can add that to the cancel URL as well if you wish

bleak socket
#

yes, but can I still retrieve session? What will I have in the cancelled session object?

#

is there any point to do so?

#

or can I write something like:

you've cancelled your order
And that would be it?

pseudo kayak
pseudo kayak
bleak socket
#

ikr, I did do stuff with /success?session_id='foo'

bleak socket
#

so session object is empty if order were cancelled and wouldn't serve any purpose?

pseudo kayak
#

hmm no, it wouldn't be 'empty', the object is still there

#

you don't have to do anything with it if you don't want to

#

I'd highly suggest just taking some time to test things out to get a feel for it

#

the cancel URL is visited when you hit the button in the top left of the Checkout page

bleak socket
#

yeah i know

#

here's my placeholder for that 🙂

#

I thought that cancelled session object would have some link for like uncancel and continue the session or anything else that can be used

pseudo kayak
#

you can just redirect back to the url of the Session object

#

so that is an option

bleak socket
#

or maybe like read more about stripe if the session were cancelled simply because they don't know what's stripe and therefore don't find it trustworthy

bleak socket
pseudo kayak
#

24 hours

#

it's technically safer to always create a new Session but it's unlikely to be a problem in practise