#mathieu_webhooks

1 messages ¡ Page 1 of 1 (latest)

halcyon girderBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1289136858508562466

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

idle crest
#

Hi, let me help you with this.

#

What's your use case for this exactly?

sharp marsh
#

I want to expire old session if the current user try to checkout a second time

#

The expire endopoint (in our side), add the reserving stock in the order to the product

#

I guess the session actually expired

but in the final endpoint, i don't see the response

idle crest
sharp marsh
#

of course : req_vpJ4H89PTK3FIP

idle crest
#

This is a request to update the webhook endpoint. Not to expire the Checkout Session.

sharp marsh
#

This one : req_OAZLlg5BXb6Jw6 ?

idle crest
#

No it's the same type of request

#

This request just updates the list of webhook event types that Stripe will send to this webhook endpoint.

sharp marsh
#

Ok, so maybe the request just not trigger
I mean checkout.session.expire

idle crest
#

What are you trying to achieve by this request exactly, on high level?

#

Or "expecting to achieve"

sharp marsh
#

When a user click on "pay button", products are reserved for 5 minutes. If the current user don't pay in time, the checkout session is flag as "expire "

When the order is expired, the stock of the product is re-incremented

idle crest
#

Okay, this makes sense.

sharp marsh
#

Maybe i can use only this method and not the webhook

idle crest
sharp marsh
#

Just waiting for the response of the API call, but i'm not sure if another thing can expire the session

idle crest
sharp marsh
#

Ok i solve the problem, it was an error in account.

Sorry for this, thanks a lot