Issue with Stripe Webhook URL Configuration in Microservices Architecture
I am currently hosting my API using a microservices architecture. The base URL for this particular service is:
http://api.attendancekeeper.net/betterauthIn my auth.ts configuration, I have set the basePath to:
/betterauth/api/auth
Under this base URL, my BetterAuth service is hosted at:
http://api.attendancekeeper.net/betterauth/betterauth/api/authThe OK api URL is:
https://api.attendancekeeper.net/betterauth/betterauth/api/auth/okWhen Stripe triggers the webhook, it attempts to call:
http://api.attendancekeeper.net/betterauth/api/auth/stripe/webhookThe expected endpoint appears to be:
https://api.attendancekeeper.net/betterauth/betterauth/api/auth/stripe/webhookI've configured Stripe to use this endpoint for webhooks, but unfortunately, it's not working as expected. Additionally, I've updated the Stripe API version to the latest available. When attempting to add a webhook in the Stripe dashboard, I noticed that the version 2025-02-24.acacia is not listed as an option, which might be contributing to the issue. Please note: Due to my microservices setup, I cannot change the base URL (/betterauth) as other services are hosted under different paths in the same domain. Could you please confirm the correct webhook URL structure in this setup, and help me resolve why the webhook is not functioning properly? Thank you for your support.



2 Replies