|
|
@ -28,6 +28,7 @@ export class SubscriptionService { |
|
|
|
private readonly prismaService: PrismaService, |
|
|
|
private readonly propertyService: PropertyService |
|
|
|
) { |
|
|
|
if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) { |
|
|
|
this.stripe = new Stripe( |
|
|
|
this.configurationService.get('STRIPE_SECRET_KEY'), |
|
|
|
{ |
|
|
@ -35,6 +36,7 @@ export class SubscriptionService { |
|
|
|
} |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public async createCheckoutSession({ |
|
|
|
couponId, |
|
|
|