Update UI style and enhance billing services

Several changes have been made in this commit. Firstly, updates have been made to the site-header-account-section and the pricing-table components to enhance UI aesthetics. Secondly, billing services have been significantly improved. A new method for retrieving plan information by an ID has been introduced. This method is available for all strategy services, including Stripe and Lemon-Squeezy. Furthermore, the way context and logging are handled during the billing process has been streamlined for better readability and efficiency.
This commit is contained in:
giancarlo
2024-04-11 10:29:52 +08:00
parent 4eba7b8edd
commit 5b837d2fa8
6 changed files with 144 additions and 88 deletions

View File

@@ -51,4 +51,11 @@ export abstract class BillingStrategyProviderService {
): Promise<{
success: boolean;
}>;
abstract getPlanById(planId: string): Promise<{
id: string;
name: string;
interval: string;
amount: number;
}>;
}