update import for Stripe Connect

This commit is contained in:
David Bomba 2021-05-09 17:33:23 +10:00
parent 89e0889ba1
commit a9f93a2796
2 changed files with 11 additions and 5 deletions

View File

@ -71,6 +71,7 @@ use App\Repositories\QuoteRepository;
use App\Repositories\UserRepository; use App\Repositories\UserRepository;
use App\Repositories\VendorContactRepository; use App\Repositories\VendorContactRepository;
use App\Repositories\VendorRepository; use App\Repositories\VendorRepository;
use App\Utils\Ninja;
use App\Utils\Traits\CleanLineItems; use App\Utils\Traits\CleanLineItems;
use App\Utils\Traits\CompanyGatewayFeesAndLimitsSaver; use App\Utils\Traits\CompanyGatewayFeesAndLimitsSaver;
use App\Utils\Traits\MakesHash; use App\Utils\Traits\MakesHash;
@ -1217,6 +1218,11 @@ class Import implements ShouldQueue
$modified['fees_and_limits'] = $this->cleanFeesAndLimits($modified['fees_and_limits']); $modified['fees_and_limits'] = $this->cleanFeesAndLimits($modified['fees_and_limits']);
} }
if(Ninja::isHosted() && $modified['gateway_key'] == 'd14dd26a37cecc30fdd65700bfb55b23'){
$modified['gateway_key'] = 'd14dd26a47cecc30fdd65700bfb67b34';
$modified['fees_and_limits'] = [];
}
$company_gateway = CompanyGateway::create($modified); $company_gateway = CompanyGateway::create($modified);
$key = "company_gateways_{$resource['id']}"; $key = "company_gateways_{$resource['id']}";

10
composer.lock generated
View File

@ -3303,16 +3303,16 @@
}, },
{ {
"name": "league/commonmark", "name": "league/commonmark",
"version": "1.6.0", "version": "1.6.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/commonmark.git", "url": "https://github.com/thephpleague/commonmark.git",
"reference": "19a9673b833cc37770439097b381d86cd125bfe8" "reference": "2651c497f005de305c7ba3f232cbd87b8c00ee8c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/19a9673b833cc37770439097b381d86cd125bfe8", "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/2651c497f005de305c7ba3f232cbd87b8c00ee8c",
"reference": "19a9673b833cc37770439097b381d86cd125bfe8", "reference": "2651c497f005de305c7ba3f232cbd87b8c00ee8c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3400,7 +3400,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-05-01T19:00:49+00:00" "time": "2021-05-08T16:08:00+00:00"
}, },
{ {
"name": "league/csv", "name": "league/csv",