#darkrider97_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. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ 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/1213104891854192701
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- darkrider97, 4 days ago, 4 messages
Hmm, you can't configure that with Stripe. You'd need to implement that yourself
So maybe your return_url is some route in your application that polls for receipt/confirmation of the payment_intent.succeeded event, and when that is confirmed then you return them to the actual page
Is doing the polling like above a best practice ? I wonder how others are showing the fullfillment of an order before the webhook itself is processed successfully.
What do you mean by 'showing the fulfillment of an order'?
Surely the webhook handles the fulfillment
In my case, fullfillment of an order means I update certain things in the database (say total_number_of_orders for the user) in the webhook handler of payment_intent.succeeded event. I would like to show this updated value of total_number_of_orders in the return_url of stripe.confirmPayment, but currently the webhook processing is not being complete by the time client is redirected to return_url.
Hey! Taking over for my colleague. I'm not sure to understand the link between the webhook event, the stripe.confirmPayment and return_url...
You are trying to make a constraint in your logic between webhook and confirmPayment which is not possible to achieve using Stripe SDK/APIs
This constraint check/sync needs to be implemented in your integration according to what is available on Stripe.
Can you please tell me what should the return_url usually is for the confirmPayment ?
The url your customer is redirected to after they complete the payment.
https://docs.stripe.com/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-return_url