mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 17:54:38 -04:00
Fixes for Stripe import
This commit is contained in:
parent
24d32c5d88
commit
4db46e2bb6
@ -25,7 +25,7 @@ class StripeController extends BaseController
|
|||||||
|
|
||||||
StripeUpdatePaymentMethods::dispatch(auth()->user()->getCompany());
|
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());
|
ImportStripeCustomers::dispatch(auth()->user()->getCompany());
|
||||||
|
|
||||||
return response()->json(['message' => 'Processing'], 403);
|
return response()->json(['message' => 'Processing'], 200);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,11 +56,11 @@ class ImportCustomers
|
|||||||
|
|
||||||
private function addCustomer(Customer $customer)
|
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'))
|
if(!$account->isPaidHostedClient() && Client::where('company_id', $this->stripe->company_gateway->company_id)->count() > config('ninja.quotas.free.clients'))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$account = $this->stripe->company_gateway->company->account;
|
|
||||||
|
|
||||||
nlog("search Stripe for {$custom->id}");
|
nlog("search Stripe for {$custom->id}");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user