AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): Fix return URL of billing portal when platform_base_url != frontend_base_url (#9417)
Zamil Majdy8e68e20fef12
diff --git a/autogpt_platform/backend/backend/server/routers/v1.py b/autogpt_platform/backend/backend/server/routers/v1.pyindex ae95051d90..992569f76b 100644--- a/autogpt_platform/backend/backend/server/routers/v1.py+++ b/autogpt_platform/backend/backend/server/routers/v1.py@@ -239,7 +239,7 @@ async def manage_payment_method() -> dict[str, str]:session = stripe.billing_portal.Session.create(customer=await get_stripe_customer_id(user_id),- return_url=settings.config.platform_base_url + "/marketplace/credits",+ return_url=settings.config.frontend_base_url + "/marketplace/credits",)if not session:raise HTTPException(