#Heien - webhooks
1 messages · Page 1 of 1 (latest)
Hello, it is normal for all webhook events on an account to be sent to all webhook endpoints that listen for that type of event.
Can you explain what you mean by "but will of course be invalid due to missing parameters"? I am not sure what that means in this context
So what is happening is, we have recently set up a new webhook to listen for orders happening in our application. Now, with 2 endpoints set up, orders in the app are also received in our webshop endpoint
When we place an order in the webshop, we receive this in the endpoint for the app
I don't understand how the order data from our app can be available in our webshop logs
It is because they are both on the same account
Stripe doesn't have a concept of which orders are from the app and which orders are from the webshop. We just see payments on your account. So when you account has two webhook endpoints both listening to payment_intent.succeeded for example, we send all events about payment intents succeeding to both
So you may need to either find a way to have your webhook endpoint code differentiate between the two, or you may need to use two separate accounts
Actually, taking a step back, you said this is developed by a third party. Is any of this your code or anything that you are directly writing code for?
I am the one responsible behind our webshop, but the app is developed fully by an external developer, who have access to our Stripe account.
But thanks for the reply. I am in touch with the developer, and we will find a way to differentiate the two. We have been thinking the webhook will only transfer data to sources connected with the same endpoint, which is why it didn't make any sense to us until now
Isn't it strange though, that when an order is happening at one source, it will send a response to both services?
I wouldn't say it is strange from a Stripe perspective, it is definitely the expected way for this to happen if both are on the same account. We don't have a way of knowing where you want the webhook events to go here. In your scenario, which one should go to which is obvious, but to us making a general platform, it makes more sense to send all events to both.