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,7 +494,10 @@ 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()
->square
->getCustomersApi()
->listCustomers(
$c, $c,
$limit, $limit,
'DEFAULT', 'DEFAULT',