#nicolas-z_webhooks

1 messages · Page 1 of 1 (latest)

jade wyvernBOT
#

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

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

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.

storm comet
#

I found that when user create subscription at the first time, the invoice.payment_succeeded callback soon after the customer.subscription.created, but when the times comes to next cycle, the event customer.subscription.updated callback immediately, and after three days the invoice.payment_succeeded event comes

#
orchid creek
#

I suspect it's related to this:

When you enable automatic collection, Stripe automatically finalizes, and begins automatic collection of the invoice. We wait 1 hour after receiving a successful response to the invoice.created event from all listening webhooks before attempting payment. If we don’t receive a successful response within 72 hours, we attempt to finalize and send the invoice.

Learn about invoice status transitions and finalization.

storm comet
#

so do I need to implement the invoice.craeted event, to make the payment comes immediately?

orchid creek
storm comet
#

so I can like close the event callback of 'invoice.created', then it would finalize it immediately, right?

orchid creek
#

When your webhook responds with a 2xx success then we'd finalize within an hour yes

#

Right now it isn't, so we wait 72 hours

storm comet
#

there are some settings for what events would be dispatcherd to our backend service, if I disselect the invoice.created event, it would finalize automatically, right?

orchid creek
#

If you don't need that event then yes just stop listening for it, and we'd finalize within an hour

storm comet
#

so the best practice is not selecting all events, right? just select the event that we handled

orchid creek
#

Exactly