diff --git a/app/Http/Controllers/StripeController.php b/app/Http/Controllers/StripeController.php index d1d3d3f54715..be825544d402 100644 --- a/app/Http/Controllers/StripeController.php +++ b/app/Http/Controllers/StripeController.php @@ -25,7 +25,7 @@ class StripeController extends BaseController StripeUpdatePaymentMethods::dispatch(auth()->user()->getCompany()); - return response()->json(['message' => 'Processing'], 403); + return response()->json(['message' => 'Processing'], 200); } @@ -41,7 +41,7 @@ class StripeController extends BaseController ImportStripeCustomers::dispatch(auth()->user()->getCompany()); - return response()->json(['message' => 'Processing'], 403); + return response()->json(['message' => 'Processing'], 200); } diff --git a/app/PaymentDrivers/Stripe/ImportCustomers.php b/app/PaymentDrivers/Stripe/ImportCustomers.php index 2ddf7a910182..05a3e9f59ae1 100644 --- a/app/PaymentDrivers/Stripe/ImportCustomers.php +++ b/app/PaymentDrivers/Stripe/ImportCustomers.php @@ -56,11 +56,11 @@ class ImportCustomers private function addCustomer(Customer $customer) { + + $account = $this->stripe->company_gateway->company->account; if(!$account->isPaidHostedClient() && Client::where('company_id', $this->stripe->company_gateway->company_id)->count() > config('ninja.quotas.free.clients')) return; - - $account = $this->stripe->company_gateway->company->account; nlog("search Stripe for {$custom->id}");