#kevinx9999-_webhooks

1 messages ¡ Page 1 of 1 (latest)

warm kayakBOT
twin fossilBOT
#

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.

warm kayakBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1249875567826960404

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

twin fossilBOT
potent shadow
#

Hello there

#

We have three different webhooks and two different checkout pages (for different line_items)

#

I'm just trying to figure out how the events from different checkout pages are sent to these webhooks

#

I have read the docs and haven't found the clear answer yet

knotty gazelle
#

Hi there, so you want to know more about the checkout.session.completed event?

potent shadow
#

not only this event, but all other events that we are listening to from different webhooks, some are overlap, some are not
I'm just trying to figure out how the events from different checkout pages are sent to these webhooks

knotty gazelle
#

Do you have some examples?

potent shadow
#

ok, here are three webhooks we have

#

when a checkout page sends an event like account.updated or charges.successeed, how is this event being sent to the webhook, which webhook?

knotty gazelle
#

Ok so you are talking about webhook endpoints.

#

It really depends on the endpoint configuration (i.e., what event is the endpoint is listening to)

potent shadow
knotty gazelle
potent shadow
#

that's where my question comes in, how Stripe sends events to different endpoints

knotty gazelle
# potent shadow ok, why?

You can open the link that I sent earlier to go to your Dashboard and see why the event wasn't delivered successfully

potent shadow
knotty gazelle
#

https://www.zkyles.com/api/connectWebhookOwners is a connect webhook endpoint and it will only listen to events from your connected accounts. Are you using Connect?

potent shadow
#

ok, I should ask this way,

knotty gazelle
potent shadow
#

is there any config that points a checkout session to a webhook endpoint?

knotty gazelle
#

Ah sorry, my mistake, they are using two different URLs.

#

"points a checkout session to a webhook endpoint?' -> can you elaborate more?

potent shadow
#

ok, let's say I have two different checkout pages for two different line_items

#

and I want to have webhook endpoint A listen to checkout session A only

#

and webhook endpoint B listens to checkout session B only

knotty gazelle
#

Not possible

potent shadow
knotty gazelle
potent shadow
# knotty gazelle Not possible

ok, so if an event is generated, it just blasts to all webhook endpoints? of course, seperate between accout and connect

knotty gazelle
#

Yes you are right

potent shadow
#

ok, to further confirm, if all of my endpoints listen to charge.successeed, once this event is generated from ANY checkout pages, all three endpoints will receive the event?

knotty gazelle
potent shadow
#

great
I actually set up the listingWebhook and connectWebhook for two different items, as there are two different group of actions following up

#

if the same event are sent to both webhooks, how should I config to determine which items was sold

knotty gazelle
potent shadow
#

ok, so if this is the case, I don't actually need two endpoints at all for ACCOUNT

#

since all the same events are delivered everywhere indiscriminately

#

just one endpoint for account and another for connect, is this the right approach?

potent shadow
#

Hello, you there?

knotty gazelle
#

What's the question?

potent shadow
#

ok, so if this is the case, I don't actually need two endpoints at all for ACCOUNT
since all the same events are delivered everywhere indiscriminately
just one endpoint for account and another for connect, is this the right approach?

knotty gazelle
#

Yes, it looks good to me.

potent shadow
#

ok, thanks

#

is it a good practice, if we use different webhook endpoints listen different events for the same account?

knotty gazelle
#

It's not required, but you can do it if some events are happening too frequent and you need to setup a dedicated endpoint to take the load.

potent shadow
#

oh, I see, thanks

#

Have a good day there!