From e1a35c52353fa200166529409ccab5f07b2227f5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 18 Aug 2021 10:32:09 +1000 Subject: [PATCH] Minor fixes for Stripe --- app/PaymentDrivers/Stripe/ImportCustomers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Stripe/ImportCustomers.php b/app/PaymentDrivers/Stripe/ImportCustomers.php index e56afb8304a6..de1d1245e0c3 100644 --- a/app/PaymentDrivers/Stripe/ImportCustomers.php +++ b/app/PaymentDrivers/Stripe/ImportCustomers.php @@ -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) {