#raul-f_webhooks

1 messages · Page 1 of 1 (latest)

proud cairnBOT
#

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

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

compact estuary
#

Hi, event ordering is not guaranteed if you're waiting for the customer created event, https://docs.stripe.com/webhooks#event-ordering. From evt_1RTw8ZKUWAvyPhUxuNUjg11l, I can see the customer id. What error are you seeing? Can you share more please?

azure fox
#

Here is the event we are receiving, the customer field is null, and it seems strange to me that the customer gets created and linked to the charge right afterward.

compact estuary
#

So if you pass the customer id when you create the PaymentIntent, it should work as you expected.

#

Does that help?

proud cairnBOT
azure fox
#

Let me check

#

So is this related to our client-side setup? Because our app only listens to these events.

azure fox
#

Yeah, I understand that part, but we don’t create any type of PaymentIntents — we only receive the webhook events and create the entities on our side.

#

Our clients are the one that connect our app on their end so we start receiving this events

vestal onyx
#

Hello, taking over for my colleague who had to step away.
You would want to instruct them to pass the Customer ID to the Payment Intent during creation. If the customer is only attached after the fact then we can't pass that info along in the success event.

There is a subsequent charge.updated event however that shows the customer id being added. What you could also do is if you recieve a charge.succeeded event without a customer.id then wait for the charge.updated event that follows that adds the customer.id