#dragsterexplore_webhooks

1 messages ¡ Page 1 of 1 (latest)

short merlinBOT
#

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

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

junior delta
#

hello! Sorry, I don't understand, can you illustrate with an example

tacit vector
#

see the problem is i have two different sites that i am working on and so i have registered two different webhooks on stripe but when ever i trigger an event on either one of them stripe send webhook event to both the sites

#

how do i only trigger one site to only that sites webhook and no the other

junior delta
tacit vector
#

can you provide me the docs or any way i can read about it

#

because i am new to programming stuff so please thnx

junior delta
#

to clarify, when you say you register 2 different webhooks on Stripe, do you mean you register the same webhook endpoint URL for both?

tacit vector
#

no the endpoints are different

junior delta
#

can you share the specific event id?

tacit vector
#

its for all the events

junior delta
#

any one will do so that i can take a look to see which webhooks it's being delivered to

junior delta
#

the event id

#

not your url

#

the event id starts with evt_

tacit vector
#

so i am working in a company so do you think i can share this with you

#

is it legal

junior delta
#

the event data isn't accessible by anyone else outside of your Stripe account. If you don't feel comfortable sharing the object ID on Discord, feel free to write in via support with the info - https://support.stripe.com/contact

tacit vector
#

you will get it from there

junior delta
#

Our support team will respond via the support ticket instead

tacit vector
#

ok

#

so basically the events are going in both the webhooks endpoint

junior delta
#

Without the relevant object id on hand, there's very little i can do to troubleshoot on this channel. You'll need to wait for a response via the support ticket

tacit vector
#

evt_1QPCXvRu0Gov8zJtJsFuPcAX

#

can you look into it

junior delta
#

this event is sent to 2 webhook endpoints, one of which is ...pentest..., another is ...qapentest...

tacit vector
#

yes

junior delta
#

both of this exist on the same account

tacit vector
#

yes

junior delta
#

okay, so I'm not seeing the problem you described here

#

you said it gets sent to two different Stripe accounts, but here, it's only being sent to a single Stripe account

tacit vector
#

no i said two different webhook endpoints

#

so if i did any thing in one of the url it triggered the webhook logic of the other as well

#

that what i want to stop

junior delta
#

i see, you can delete the other webhook endpoint then

tacit vector
#

no i have can delete then i would have already

#

i need both for testing

#

is there some way i can differentiate between them while validating the webhook or some other way

junior delta
#

Your webhook URLs are different already, you should be able to process them based off the webhook URL. Otherwise, adding a query parameter like what I described earlier and then processing them differently based off that works too. How to actually implement it is up to you though.

tacit vector
#

it can't be handled via url because its same whether for pentest or qapentest

#

meaning whether i do something with pentest i see that the event comming is from qapentest also

junior delta
#

you can check the domain, or again, like i mentioned, use a query parameter

tacit vector
#

so is there any way i can change in the dashboard to give an extra variable to differentiate while checking the event

junior delta
#

that's what query parameters are for

tacit vector
#

extra variable in the every event

junior delta
tacit vector
#

i will try with query parameter but any other options i shoul try

junior delta
#

that's the first one that comes to mind for me, you can search online if there's any other suggestions or recommendations

tacit vector
#

i can't get anything

#

that why i am here please get me anything

#

because i don't thing query parameter in the url will work

junior delta
#

Many other folks have tried with a query parameter and that worked out well for them. If you haven't tried it out yet, how do you know that it doesn't work?

Also, to be clear, we can't teach you how to program here. We expect a certain level of programming proficiency. We can help answer questions about how Stripe works. While we can share at a high level how to differentiate between the webhooks coming in, again, how to implement this is your responsibility

tacit vector
#

yes i get that i just wanna know one thing can i change every event going to a certain webhook endpoint and add some variable or something

junior delta
#

you cannot add a variable to the event object. In short, you cannot change anything about the event object. A query parameter makes it so that you can easily differentiate which endpoint the event was sent to

tacit vector
#

ok sure i will try it