setPayPal(): void { forkJoin([this.translateService.get(['Client.Pay-With-PayPal', 'Client.Pay-Now']), this.translateService.get('Client.Please-Click-And-Make-The-Payment', { value: environment.parcelDeliveryCost })]) .subscribe(([res1, res2]) => { this.payPal = { title: res1['Client.Pay-With-PayPal'], payPalUrl: environment.payPalUrl, description: res2, parentButtonText: res1['Client.Pay-With-PayPal'], childButtonText: res1['Client.Pay-Now'], }; }); }