#Florian-webhooks

1 messages ยท Page 1 of 1 (latest)

next magnet
#

๐Ÿ‘‹ happy to help

#

what do you mean by the currency of the webhook?

feral rampart
#

In my integration I have one stripe account per currency

#

one account for โ‚ฌ and one for $ for example

#

and I get the api key (in my credentials file) depending on the currency

#

but when integrating webhook signatures for security

#

I have to get the endpoint secret (on my credential file) depending on the account, thus the currency

#

Is it clear or should I reformulate ? :/

next magnet
#

no it's clear I'm just trying to think of a solution

#

actually what you can do is something easier

#

if you're configuring the same endpoint for each account, you could just add a query param at the end of that URL and use that to do the mapping

#

something like https://example.com/webhooks?foo=bar

feral rampart
#

do you mean in the params ?

next magnet
#

yes

feral rampart
#

That's actually a great idea

#

I'll try this ๐Ÿ‘