1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Catch Stripe when account not configured

This commit is contained in:
David Bomba 2021-08-15 07:51:37 +10:00
parent e065789315
commit 9536605cb4

View File

@ -48,6 +48,9 @@ class ImportCustomers
$this->update_payment_methods = new UpdatePaymentMethods($this->stripe);
if(strlen($this->stripe->company_gateway->getConfigField('account_id')) < 1)
throw new \Exception('Stripe Connect has not been configured');
$customers = Customer::all([], $this->stripe->stripe_connect_auth);
foreach($customers as $customer)