profiles->page(); foreach ($profiles as $profile) { echo '
'; echo htmlspecialchars($profile->name) . ' - ' . htmlspecialchars($profile->website) . ' (' . htmlspecialchars($profile->id) . ')'; echo '
'; } } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }