This will list all payments not only the paid ones so when looping through results you can check if a payment is paid:
$_payments = $mollie_manager->listMainAccountPayments();
foreach ($payments as $payment) {
if (!empty($payment['paidAt'])) {
echo "ID: $payment['id']
";
echo "Amount: {$payment['amount']['value']} {$payment['amount']['currency']}
";
echo "Status: {$payment['status']}
";
}
}
https://docs.mollie.com/reference/v2/payments-api/list-payments
function(string $api_key, array $params = [], string $from = NULL, int $limit = 250)
{
array $params = [],
string $from = null,
int $limit = 250
): array
{
$mollie = new MollieApiClient();
$mollie->setApiKey($api_key);
$payments = $mollie->payments->page($from, $limit, $params);
return X::toArray($payments);
}