mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Fixes for square pagination
This commit is contained in:
parent
3ef7d68eed
commit
136c076623
@ -470,8 +470,6 @@ class SquarePaymentDriver extends BaseDriver
|
||||
|
||||
$client_repo = new ClientRepository(new ClientContactRepository());
|
||||
|
||||
nlog($customers);
|
||||
|
||||
foreach($customers as $customer)
|
||||
{
|
||||
|
||||
@ -496,12 +494,15 @@ class SquarePaymentDriver extends BaseDriver
|
||||
$c = $api_response->getCursor();
|
||||
if ($c) {
|
||||
|
||||
$api_response = $client->getCustomersApi()->listCustomers(
|
||||
$c,
|
||||
$limit,
|
||||
'DEFAULT',
|
||||
'DESC'
|
||||
);
|
||||
$api_response = $this->init()
|
||||
->square
|
||||
->getCustomersApi()
|
||||
->listCustomers(
|
||||
$c,
|
||||
$limit,
|
||||
'DEFAULT',
|
||||
'DESC'
|
||||
);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user