1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +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()); $client_repo = new ClientRepository(new ClientContactRepository());
nlog($customers);
foreach($customers as $customer) foreach($customers as $customer)
{ {
@ -496,12 +494,15 @@ class SquarePaymentDriver extends BaseDriver
$c = $api_response->getCursor(); $c = $api_response->getCursor();
if ($c) { if ($c) {
$api_response = $client->getCustomersApi()->listCustomers( $api_response = $this->init()
$c, ->square
$limit, ->getCustomersApi()
'DEFAULT', ->listCustomers(
'DESC' $c,
); $limit,
'DEFAULT',
'DESC'
);
} else { } else {
break; break;
} }