mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes
This commit is contained in:
parent
6689a22f38
commit
d9e482f5b7
@ -292,7 +292,7 @@ class SquarePaymentDriver extends BaseDriver
|
|||||||
if ($api_response->isSuccess()) {
|
if ($api_response->isSuccess()) {
|
||||||
|
|
||||||
//array of WebhookSubscription objects
|
//array of WebhookSubscription objects
|
||||||
foreach($api_response->getResult()->getSubscriptions() as $subscription)
|
foreach($api_response->getResult()->getSubscriptions() ?? [] as $subscription)
|
||||||
{
|
{
|
||||||
if($subscription->getName() == 'Invoice_Ninja_Webhook_Subscription')
|
if($subscription->getName() == 'Invoice_Ninja_Webhook_Subscription')
|
||||||
return $subscription->getId();
|
return $subscription->getId();
|
||||||
@ -301,7 +301,7 @@ class SquarePaymentDriver extends BaseDriver
|
|||||||
} else {
|
} else {
|
||||||
$errors = $api_response->getErrors();
|
$errors = $api_response->getErrors();
|
||||||
nlog($errors);
|
nlog($errors);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user