mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for browser pay
This commit is contained in:
parent
d8d8914b5a
commit
0ea14e0f7c
@ -198,14 +198,6 @@ class BrowserPay implements MethodInterface
|
|||||||
return;
|
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();
|
$domain = $this->getAppleDomain();
|
||||||
|
|
||||||
if(!$domain)
|
if(!$domain)
|
||||||
@ -244,12 +236,7 @@ class BrowserPay implements MethodInterface
|
|||||||
$domain = config('ninja.app_url');
|
$domain = config('ninja.app_url');
|
||||||
}
|
}
|
||||||
|
|
||||||
$parsed_url = parse_url($domain);
|
return str_replace("https://", "", $domain);
|
||||||
|
|
||||||
if(array_key_exists('host', $parsed_url))
|
|
||||||
return $parsed_url['host'];
|
|
||||||
|
|
||||||
return false;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user