I am developing a cron supposed to capture all the recent orders from a specific payment method, but I currently have a problem getting all the orders from a specific payment method.
I thought that the payment method would be in the sales_flat_order
table, but it isn't, so I can not use something like :
$ordersCollection = Mage::getModel('sales/order')->getCollection()
->addFieldToFilter('payment_method', $paymentMethod);
How can I filter all the orders and only get the one with a certain payment method ?