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:
@@ -127,4 +127,16 @@ export class BillingGatewayService {
|
||||
|
||||
return strategy.updateSubscription(payload);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a plan by the specified plan ID.
|
||||
* @param planId
|
||||
*/
|
||||
async getPlanById(planId: string) {
|
||||
const strategy = await BillingGatewayFactoryService.GetProviderStrategy(
|
||||
this.provider,
|
||||
);
|
||||
|
||||
return strategy.getPlanById(planId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user