46 add stripe product endpoint (#4133)
* Add self billing feature flag * Add two core tables for billing * Remove useless imports * Remove graphql decorators * Rename subscriptionProduct table * WIP: Add stripe config * Add controller to get product prices * Add billing service * Remove unecessary package * Simplify stripe service * Code review returns * Use nestjs param * Rename subscription to basePlan * Rename env variable
This commit is contained in:
@ -305,4 +305,15 @@ export class EnvironmentService {
|
||||
this.configService.get<number>('MUTATION_MAXIMUM_RECORD_AFFECTED') ?? 100
|
||||
);
|
||||
}
|
||||
|
||||
getBillingStripeBasePlanProductId(): string {
|
||||
return (
|
||||
this.configService.get<string>('BILLING_STRIPE_BASE_PLAN_PRODUCT_ID') ??
|
||||
''
|
||||
);
|
||||
}
|
||||
|
||||
getStripeApiKey(): string {
|
||||
return this.configService.get<string>('STRIPE_API_KEY') ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user