#nihan_webhooks

1 messages ¡ Page 1 of 1 (latest)

lyric radishBOT
#

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

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

brave olive
#

Pretty new to stripe, I am sorry if the question comes across , a bit naive.

night widgetBOT
brave olive
#

Oh forgot to add a note:
So I was creating a checkout session for a subscription.. and that's how I was getting the events.

charred geode
#

Hi there

brave olive
#

Hey

charred geode
#

The webhook events are sent at almost same time and unfortunately we can't guarantee the events order

#

It depends on the internet traffic and connection between your server and Stripe server

#

But only you can receive your webhook events, correct? Or you have multiple team receiving webhook events

brave olive
#

Only I can yes,
but multiple teams can create events in different scenarios..

#

Okay, then this is probably not the right approach for me to take..(listening for the subscription event creation)

Could you recommend a way for me to figure out when a paid invoice for a subscription is the first payment?

charred geode
#

Let's take a step back. If you ignore invoice.paid and only listen to customer.subscription.created, would that work?

#

You only want the Subscription Id, correct?

brave olive
charred geode
#

In the invoice.paid, you probably want to look at its billing_reason to be subscription_create

#

That means it's the first Invoice of a Subscription

brave olive
#

Okay, let me check again..