#nollix_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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/1442895073862881372
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
One way is to set the success_url to your own URL. Upon returning to your Webhook URL, you can then use Retrieve Checkout Session API to check the status: https://docs.stripe.com/api/checkout/sessions/retrieve?api-version=2025-11-17.preview&rds=1
Just a reminder, Stripe has rate limit on the APIs: https://docs.stripe.com/rate-limits. Therefore, Webhook integration is still recommended.
This is the fulfilment integration we recommend: https://docs.stripe.com/checkout/fulfillment
1)Now in my project, success_url is set to "booking-success" page. According to your answer I should do as follows:
- Set the success_url to a server function that fulfill orders
- In the server function I will update the database (optional: check if checkout.session.completed event occurred)
- At the end the user is redirected to the "booking-success" page if everything is ok.
This method should let me have a plan B in case the webhook has a delay or fail to update the db
Is it right?
- If stripe redirects the user using success_url means that the payment is occurred but which specific event does it correspond to ? (Corrispond to checkout.session.completed? or payment_intent.succeeded?)
hi there, if you have a webhook endpoint listening for checkout.session.completed, Stripe waits for a successful response from the event before redirecting to the success_url. we describe this here https://docs.stripe.com/checkout/fulfillment?payment-ui=stripe-hosted#redirect-hosted-checkout
fyi i'm taking over for my colleague, let me know if you have any additional questions!
I don't really understand the answer of @brisk radish: it is written that Stripe waits for checkout.session.completed before redirect the client to another page when the user is in the Stripe host page (if I have a webhook endpoint listening for checkout.session.completed - by the way I have this method). Does it mean that when the user is paying in the Stripe host page, the website has access to the events (like checkout.session.completed) without waiting for webhooks or similart methods? (so stripe can directly check the status of the payment)
P.S: I don't think that I can rely on this feature because in the documentation it is written that the system wait until 10 seconds (so after what happen?) and this feature doesn't work for company account (I should implement this for companies)
Does it mean that when the user is paying in the Stripe host page, the website has access to the events (like checkout.session.completed) without waiting for webhooks or similart methods?
i don't think i understand what you mean by this, can you try rephrasing your question?