i have application fetches stripe charge data periodically , creates correlation data our system. batching requests stripe's api our clients api key.
this works great not true real-time , killing our servers wasteful api calls.
is there way register webhook on our stripe account listen events happen on other api keys can provide more real-time experience our customers.
rather using clients' api keys, should set account stripe connect platform, , have clients connect account yours.
once done, able issue api requests on behalf on clients, using own api key , stripe-account
header.
you able set connect webhook endpoint let receive events accounts connected yours. these events include user_id
field id
of account sent event.