payments->page(); echo ""; /** * Get the next set of Payments if applicable */ $nextPayments = $payments->next(); if (!empty($nextPayments)) { echo ""; } } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }