diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index a0789bc6e68d..c186d027ac3e 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -1162,10 +1162,7 @@ class Invoice extends EntityModel implements BalanceAffecting } if (! $pdfString && ($key = env('PHANTOMJS_CLOUD_KEY'))) { - if (Utils::isNinjaDev()) { - $link = env('TEST_LINK'); - } - $url = "http://api.phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$link}?phantomjs=true&phantomjs_secret={$phantomjsSecret}%22,renderType:%22html%22%7D"; + $url = "http://api.phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$link}?phantomjs=true%26phantomjs_secret={$phantomjsSecret}%22,renderType:%22html%22%7D"; $pdfString = CurlUtils::get($url); }