Merge pull request #6482 from turbo124/v5-develop

Minor fixes for Stripe
This commit is contained in:
David Bomba 2021-08-18 10:32:26 +10:00 committed by GitHub
commit dcf9d3bdec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ class ImportCustomers
if(count($searchResults) == 1)
{
$cgt = ClientGatewayToken::where('gateway_customer_reference', $searchResults->data[0]->id)->where('company_id', $this->company_gateway->company->id)->exists();
$cgt = ClientGatewayToken::where('gateway_customer_reference', $searchResults->data[0]->id)->where('company_id', $this->stripe->company_gateway->company->id)->exists();
if(!$cgt)
{