Support subcription payments

This commit is contained in:
Urtzi Alfaro
2025-09-25 14:30:47 +02:00
parent f02a980c87
commit 89b75bd7af
22 changed files with 2119 additions and 364 deletions

View File

@@ -85,7 +85,7 @@ export class SubscriptionService {
}
async getAvailablePlans(): Promise<AvailablePlans> {
return apiClient.get<AvailablePlans>('/subscriptions/plans');
return apiClient.get<AvailablePlans>('/plans');
}
async validatePlanUpgrade(tenantId: string, planKey: string): Promise<PlanUpgradeValidation> {
@@ -133,7 +133,7 @@ export class SubscriptionService {
}
try {
const plans = await apiClient.get<AvailablePlans>('/subscriptions/plans');
const plans = await apiClient.get<AvailablePlans>('/plans');
cachedPlans = plans;
lastFetchTime = now;
return plans;