#h20-checkout-expiry
1 messages · Page 1 of 1 (latest)
Hi there! Have you logged out that variable before you use it in your fetch request?
Oh.
You are attempting to do this client side?
You can only expire a Checkout Session using your Secret Key server-side
oh ok, do you have any documentation on how to do that?
https://stripe.com/docs/api/checkout/sessions/expire is the endpoint you want to use from your server
Im sorry I dont really understand the documentation. Like how do I use my secret key to make the request with code?
Sorry we don't write code for folks here -- we just help unblock developers and answer their questions. You will likely want to look into hiring a developer to help you.
ok but who asked
Hi 👋