1
0
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:
David Bomba 2024-03-19 10:40:11 +11:00
parent 3ef7d68eed
commit 136c076623

View File

@ -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;
}