#darkrider97_webhooks

1 messages ¡ Page 1 of 1 (latest)

fallow rainBOT
#

👋 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.

ocean plinthBOT
#

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.

silk surge
#

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

sour nymph
#

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.

silk surge
#

What do you mean by 'showing the fulfillment of an order'?

ocean plinthBOT
silk surge
#

Surely the webhook handles the fulfillment

sour nymph
#

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.

primal stream
#

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.

sour nymph
#

Can you please tell me what should the return_url usually is for the confirmPayment ?

primal stream