| 
						
						
							
								
							
						
						
					 | 
					@ -41,7 +41,7 @@ export class SubscriptionService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					  public async createCheckoutSession({ | 
					 | 
					 | 
					  public async createStripeCheckoutSession({ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    couponId, | 
					 | 
					 | 
					    couponId, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    priceId, | 
					 | 
					 | 
					    priceId, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    user | 
					 | 
					 | 
					    user | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -61,7 +61,8 @@ export class SubscriptionService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      } | 
					 | 
					 | 
					      } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ); | 
					 | 
					 | 
					    ); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    const checkoutSessionCreateParams: Stripe.Checkout.SessionCreateParams = { | 
					 | 
					 | 
					    const stripeCheckoutSessionCreateParams: Stripe.Checkout.SessionCreateParams = | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        cancel_url: `${this.configurationService.get('ROOT_URL')}/${ | 
					 | 
					 | 
					        cancel_url: `${this.configurationService.get('ROOT_URL')}/${ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          user.settings.settings.language | 
					 | 
					 | 
					          user.settings.settings.language | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }/account`,
 | 
					 | 
					 | 
					        }/account`,
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -87,7 +88,7 @@ export class SubscriptionService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      }; | 
					 | 
					 | 
					      }; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    if (couponId) { | 
					 | 
					 | 
					    if (couponId) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      checkoutSessionCreateParams.discounts = [ | 
					 | 
					 | 
					      stripeCheckoutSessionCreateParams.discounts = [ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        { | 
					 | 
					 | 
					        { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          coupon: couponId | 
					 | 
					 | 
					          coupon: couponId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -95,7 +96,7 @@ export class SubscriptionService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    const session = await this.stripe.checkout.sessions.create( | 
					 | 
					 | 
					    const session = await this.stripe.checkout.sessions.create( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      checkoutSessionCreateParams | 
					 | 
					 | 
					      stripeCheckoutSessionCreateParams | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    ); | 
					 | 
					 | 
					    ); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    return { | 
					 | 
					 | 
					    return { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |