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/betterauth

In 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/auth

The OK api URL is:
https://api.attendancekeeper.net/betterauth/betterauth/api/auth/ok


When Stripe triggers the webhook, it attempts to call:
http://api.attendancekeeper.net/betterauth/api/auth/stripe/webhook

The expected endpoint appears to be:
https://api.attendancekeeper.net/betterauth/betterauth/api/auth/stripe/webhook

I'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.
Screenshot_select-area_20250513134400.png
Screenshot_select-area_20250513134810.png
Screenshot_select-area_20250513134920.png
Was this page helpful?