#thomasst
1 messages · Page 1 of 1 (latest)
Hi there. One moment
You can provide an idempotency key to the request that's unique per customer: https://stripe.com/docs/api/idempotent_requests
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
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