Closed utrenkner closed 2 years ago
Hi @utrenkner!
There is a section in the README file that explains how to deal with Pagination.
Also, the Customer class has a getId() method you can use.
So, once you have your $customers
collection, you just need to do something like:
foreach ($customers as $customer) {
$customerId = $customer->getId();
// ...
}
Hope that helps!
Thank you @miguelrs !
I have the customer's email and want to retrieve her/his customer ID.
I can list the customer with
But how would I query the resulting $customers (of type PagedCollection) so that I can identify the ID? The direct way is not possible because ID is private. But I do not find a suitable getter function...