mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop
This commit is contained in:
commit
fa828b3ab6
@ -271,7 +271,7 @@ class CreditCard implements MethodInterface
|
||||
$errors = $api_response->getErrors();
|
||||
}
|
||||
|
||||
if (property_exists($customers, 'customers')) {
|
||||
if ($customers && property_exists($customers, 'customers')) {
|
||||
return $customers->customers[0]->id;
|
||||
}
|
||||
|
||||
|
@ -89,6 +89,10 @@ class PaymentIntentWebhook implements ShouldQueue
|
||||
}
|
||||
|
||||
$company_gateway = CompanyGateway::query()->find($this->company_gateway_id);
|
||||
|
||||
if(!$company_gateway)
|
||||
return;
|
||||
|
||||
$stripe_driver = $company_gateway->driver()->init();
|
||||
|
||||
$charge_id = false;
|
||||
|
Loading…
Reference in New Issue
Block a user