#Nacio-checkout
1 messages ยท Page 1 of 1 (latest)
Yeah, let's say I create the checkout session, but then the user would close that tab e.g. by mistake, so I figured I should provide some kind of a button to return to it so I'd need the URL
How do you do redirection to checkout session page at the moment? Is it via frontend or server redirect?
Right now it doesn't exist since I'm only planning atm, but I'd probably just do a 3xx response
tl;dr server redirect, misunderstood ๐
I see! If it's frontend redirect, you can put the URL in the local storage: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
If it's server redirect, you'll probably need to store URL in DB and retrieve it later
So that means I do have to cache it myself, then either in-memory or in database, alright thanks!