Stripe - Unable to set up 2 webhook endpoints: 'Account' and 'Connect' (wappler limitation?)

I have a very frustrating Wappler limitation(?) - perhaps I’m doing it wrong…

For our Stripe integration we need to be able to deal with webhooks from connected accounts and from direct account.

That means creating 2 webhook endpoints, for example:
webhooks/stripe/connect
webhooks/stripe

However, currently in Wappler you can only set up 1 webhook endpoint secret and there’s only 1 folder. This means I am currently using the endpoint webhooks/stripe for both types of webhooks:

This doesn’t work because the endpoint secret (whsec_...) is different per webhook. (Throws the error Webhook Error: No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? https://github.com/stripe/stripe-node#webhook-signing

So either I can process direct or connect webhook events.

To process both in Wappler we need:

  1. A way to set up 2 webhook endpoint secrets
    image
  2. Another folder for the ‘connected’ webhooks

Link to documentation: https://stripe.com/docs/connect/webhooks

PS Just confirming that this is their intended way of handling webhooks (from the Stripe developer Discord):
image

Is there any way around tihs? Or else - can this be added to Wappler’s stripe integration?

Community Page
Last updated: