Q:

magento 1.9 How to cancel an order in "Payment review"

Sometimes an order gets stuck at "Payment review" status/state, and there is no way to cancel it through Magento.  From magento I only can change them to "suspect fraud" status/state but I can't cancel them. 
I can cancel the orders editing directly in the database the order in the tables sales_flat_order and sales_flat_order_grid. 
Is there a way to do it directly with magento?  Do I need to add by code a cancel button to the orders in this status/state? 
Magento ver.  1.9.2.4

A:

Finally I made an override of the core model Mage_Sales_Model_Order. 
To override this file, copy app/code/core/Mage/Sales/Model/Order.php to app/code/local/Mage/Sales/Model/Order.php
In the file placed in local, find the public function canCancel() (over the line 545) and add to the beginning of the function:
if ($this->isPaymentReview()) {
    return true;
}

Now the cancel button is displayed on payment review status/state orders, and this way I'm able to cancel this orders.