Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/aci/server/routes/billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ async def create_checkout_session(
"quantity": 1,
}
],
allow_promotion_codes=True,
success_url=f"{config.DEV_PORTAL_URL}/settings",
cancel_url=f"{config.DEV_PORTAL_URL}/pricing",
mode="subscription",
Expand Down
10 changes: 9 additions & 1 deletion backend/mock/propelauth_fastapi_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,15 @@ def fetch_users_in_org(
include_orgs: bool = False,
role: str | None = None,
):
return self.auth.fetch_users_in_org(org_id, page_size, page_number, include_orgs, role)
# Mock response for local development
from propelauth_py.api import UsersPagedResponse
return UsersPagedResponse(
users=[],
total_users=0,
current_page=page_number,
page_size=page_size,
has_more_results=False
)

def create_user(
self,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/pricing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function PricingPage() {

useEffect(() => {
if (subscription && subscription.plan !== "free") {
router.replace("/account");
router.replace("/settings");
}
}, [subscription, router]);

Expand Down
Loading