currently i'm getting all orders id's from some code on my success.phtml page.
What about if orders get canceled. How to i only pass information along on canceled or declined and would they still hit the success.phtml page... maybe if it was declined after the fact.... ???
Mage::getSingleton('checkout/session')->getLastOrderId().'&event_status=decline'
Obviously the code above gets the id but always (forces) to pass a declined status.
This is part of a rest api but i'm only looking to send orders that have been declined.
event_status='.Mage::getModel('sales/order')->getCollection()->addFieldToFilter('status', 'cancelled')
I only want to pass the order id's that are cancelled. would the above work as the second part?