mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:27:31 -05:00 
			
		
		
		
	Fixes for browser pay
This commit is contained in:
		
							parent
							
								
									d8d8914b5a
								
							
						
					
					
						commit
						0ea14e0f7c
					
				@ -198,14 +198,6 @@ class BrowserPay implements MethodInterface
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // $domain = config('ninja.app_url');
 | 
			
		||||
 | 
			
		||||
        // if (Ninja::isHosted()) {
 | 
			
		||||
        //     $domain = isset($this->stripe->company_gateway->company->portal_domain)
 | 
			
		||||
        //         ? $this->stripe->company_gateway->company->portal_domain
 | 
			
		||||
        //         : $this->stripe->company_gateway->company->domain();
 | 
			
		||||
        // }
 | 
			
		||||
 | 
			
		||||
        $domain = $this->getAppleDomain();
 | 
			
		||||
 | 
			
		||||
        if(!$domain)
 | 
			
		||||
@ -244,12 +236,7 @@ class BrowserPay implements MethodInterface
 | 
			
		||||
            $domain = config('ninja.app_url');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $parsed_url = parse_url($domain);
 | 
			
		||||
 | 
			
		||||
        if(array_key_exists('host', $parsed_url))
 | 
			
		||||
            return $parsed_url['host'];
 | 
			
		||||
 | 
			
		||||
        return false;
 | 
			
		||||
        return str_replace("https://", "", $domain);
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user