diff --git a/app/Http/Controllers/StripeConnectController.php b/app/Http/Controllers/StripeConnectController.php index 26456c0fce..eccc593047 100644 --- a/app/Http/Controllers/StripeConnectController.php +++ b/app/Http/Controllers/StripeConnectController.php @@ -98,7 +98,7 @@ class StripeConnectController extends BaseController $company_gateway->gateway_key = 'd14dd26a47cecc30fdd65700bfb67b34'; $company_gateway->fees_and_limits = $fees_and_limits; $company_gateway->setConfig([]); - $company_gateway->save(); + // $company_gateway->save(); $payload = [ 'account_id' => $response->stripe_user_id, @@ -112,15 +112,16 @@ class StripeConnectController extends BaseController ]; /* Link account if existing account exists */ - if($account_id = $this->checkAccountAlreadyLinkToEmail($company_gateway, $request->getContact()->email)) { + // if($account_id = $this->checkAccountAlreadyLinkToEmail($company_gateway, $request->getContact()->email)) { - $payload['account_id'] = $account_id; - $company_gateway->setConfig($payload); - $company_gateway->save(); + // $payload['account_id'] = $account_id; + // $payload['stripe_user_id'] = $account_id; + // $company_gateway->setConfig($payload); + // $company_gateway->save(); - return view('auth.connect.existing'); + // return view('auth.connect.existing'); - } + // } $company_gateway->setConfig($payload); $company_gateway->save(); diff --git a/config/ninja.php b/config/ninja.php index 923e620c21..50f5e72a53 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -7,7 +7,7 @@ return [ 'license_url' => 'https://app.invoiceninja.com', 'production' => env('NINJA_PROD', false), 'license' => env('NINJA_LICENSE', ''), - 'version_url' => 'https://raw.githubusercontent.com/invoiceninja/invoiceninja/v5-stable/VERSION.txt', + 'version_url' => 'https://pdf.invoicing.co/api/version', 'app_name' => env('APP_NAME', 'Invoice Ninja'), 'app_env' => env('APP_ENV', 'selfhosted'), 'debug_enabled' => env('APP_DEBUG', false),