I would like to be able to allow users to select a certain option on checkout, and then they will be redirected to the bank page where they use their credit info to pay, then redirected back to magento and set order as approved on success or fail if not
I have been messing around with magento's code for a couple of days, I was able to 'hack' through the onepage controller to do the redirect and then come back, but I am not able to change the status of the order to 'approved' from that controller
what I basically did in the controller in the 'saveorder action' is: - check the payment method selected by the user - if it is the one I need, send user to bank page with the amount to be paid - then return back from that page to a php page that checks the status returned, if successful redirects to onepage/success/ , if not, to onepage/failure
it all works nicely BUT how can I change the order state ?
I tried what's in this link, but this only works for an older version of Magento it seems http://blog.chapagain.com.np/magento-how-to-change-order-status-programmatically/
thanks