#sarvesh3742_webhooks

1 messages ¡ Page 1 of 1 (latest)

small pulsarBOT
#

👋 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/1309128385917616210

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

harsh sand
#

I don't know what you mean by 'concurrent wbehook requests'. You can't delay them no

vivid mesa
#

we are using payment Intent API and creating first payment object with setup_future_usage' => 'off_session' and next payment objects with

'payment_method' => $payment_method_id, // Use the first Payment Method ID
'confirm' => true, // Automatically confirm since Payment Method is saved
'return_url' => $returnUrl,
'customer' => $customer_id,
'automatic_payment_methods' => [
'enabled' => true,
'allow_redirects' => 'never', // Optional: disable redirect-based methods
],

So if there are 10 invoice are selected and paid with same customer and payment mothod selected, we are receiving 10 webhook events withing 1 second but it takes some time to processing and send email notifications to users and admin and for 1st webhook event it works fine but next are not sending emails. So can we delay the webhook events from Stripe settings?

harsh sand
#

You cannot no, you'd need to handle that concurrency issue in your webhook endpoint. Maybe build a job queue/worker that processes the events async