-
Notifications
You must be signed in to change notification settings - Fork 197
Description
Feature request
- Extension name: firestore-stripe-payments
Is your feature request related to a problem? Please describe.
I'm building a marketplace, utilising destination or direct charges depending on the connected stripe account being targeted for payment.
When setting up webhoooks in stripe as a connect platform, you must specify whether an endpoint is designed to receive platform events (such as platform subscription payments, or one off payments ) or events happening on connected accounts. Due to webhook secrets being different for each, this can't happen on the same endpoint.
Describe the solution you'd like
I think the ability to set up and configure a secondary handleWebhookEvents function would be really handy for users building marketplaces or platforms. There might also be additional work here as well, as customers created for connected accounts (necessary for direct charges) won't necessarily have their firebase UID metadata attached (even though they are supposed to be clones of the platform account.
Describe alternatives you've considered
I've built my own, but it's kind of a rush job and I can see that this will quickly get out of sync with the extension function as updates come through.
Another alternative would be to utilise the same endpoint but allow the config to take multiple webhook secrets, but I foresee this as being a pain point as the