#dragsterexplore_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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.
hello! Sorry, I don't understand, can you illustrate with an example
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
you can add a query parameter to each webhook endpoint URL, then process based off the query parameter. e.g. https://webhook.com?site=1, https://webhook.com?site=2
can you provide me the docs or any way i can read about it
because i am new to programming stuff so please thnx
to clarify, when you say you register 2 different webhooks on Stripe, do you mean you register the same webhook endpoint URL for both?
no the endpoints are different
can you share the specific event id?
its for all the events
any one will do so that i can take a look to see which webhooks it's being delivered to
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
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
you will get it from there
Our support team will respond via the support ticket instead
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
this event is sent to 2 webhook endpoints, one of which is ...pentest..., another is ...qapentest...
yes
both of this exist on the same account
yes
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
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
i see, you can delete the other webhook endpoint then
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
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.
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
you can check the domain, or again, like i mentioned, use a query parameter
so is there any way i can change in the dashboard to give an extra variable to differentiate while checking the event
that's what query parameters are for
extra variable in the every event
i.e. update the webhook URL e.g. https://webhook.com/?site=1, https://webhook.com/?site=2
i will try with query parameter but any other options i shoul try
that's the first one that comes to mind for me, you can search online if there's any other suggestions or recommendations
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
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
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
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
ok sure i will try it