#arnotixe
1 messages ยท Page 1 of 1 (latest)
Hi there. It would be easiest to just add a second webhook endpoint for the other account
Not sure if should speak here, but adding a query parameter should work too. We use same endpoint and identify who is calling by query parameter
yeah, that could work. Only thing hook #1 is in production ๐ค Could be boss agrees though, there isn't really a looot of traffic on that hook fortunately
If it's only ever going to be a couple accounts, having an endpoint for each account wouldn't be too bad
But yeah up to you really
yeah well I'm not writing a separate processor function in any case, will just switch credentials based on account_id so we just need to identify which is which ๐ Thanks for the ideas!
No problem
Actually it should of course be doable without changes to production of course, by defaulting to the missing param
exports.incomingStripeDispute = async (req, res) => {
const { accountId = '1' } = req.params; // original hook is 1