From 6f06e3b268000c08b0f433b8b39d78bb2b99229f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 17 May 2021 08:32:45 +1000 Subject: [PATCH] Fixes for important company gateway tokens --- app/Jobs/Util/Import.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index e3a2a267fc..de18ff547e 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -1264,7 +1264,7 @@ class Import implements ShouldQueue $modified['fees_and_limits'] = $this->cleanFeesAndLimits($modified['fees_and_limits']); } - if(Ninja::isHosted() && $modified['gateway_key'] == 'd14dd26a37cecc30fdd65700bfb55b23'){ + else if(Ninja::isHosted() && !Ninja::isPaidHostedClient() && $modified['gateway_key'] == 'd14dd26a37cecc30fdd65700bfb55b23'){ $modified['gateway_key'] = 'd14dd26a47cecc30fdd65700bfb67b34'; $modified['fees_and_limits'] = []; } @@ -1296,6 +1296,8 @@ class Import implements ShouldQueue $modified['company_id'] = $this->company->id; $modified['client_id'] = $this->transformId('clients', $resource['client_id']); + $modified['company_gateway_id'] = $this->transformId('company_gateways', $resource['company_gateway_id']); + //$modified['user_id'] = $this->processUserId($resource); $cgt = ClientGatewayToken::Create($modified);