#thomasst

1 messages · Page 1 of 1 (latest)

void fractalBOT
lean linden
#

Hi there. One moment

young epoch
#

Thanks, but I'm not sure if this is actually what I'm looking for. If the customer abandons the checkout and creates a new one (with possibly a different product), I'd like to create a new checkout while expiring any previous active checkouts for that customer.

lean linden
#

Ah in that case you'll need to store checkout session id's somewhere on your end to keep track of them

#

Like Redis or some key value store that can expire keys after 24 hours (Checkout session auto expiry window length)

#

Or whatever db you like really

young epoch
#

Thanks, I guess that could work.

#

If I don't want to do this, I'd have to loop via checkout sessions and then client-side filter by status=open and then expire them via the API?

lean linden
#

Yeah that's another way, but that would introduce more latency

#

Due to an extra api call and the loop