I would like to be able to allow users to select a specific option when placing an order, and then they will be redirected to the bank page, where they use their credit information for payment, then redirected back to magenta and establish the order approved upon successful completion, or does not work, if not
I’ve been messing around with the magento code for several days, I was able to “hack” through one controller to redirect and then return, but I can’t change the order status to “approved” from this controller
what I basically did in the controller in the "saveorder action": - check the payment method chosen by the user - if this is the one I need, send the user the amount to be paid to the bank page - then return from this page to the php page that checks the return status, if it is possible to redirect to one page / success /, if not, to one page / failure
everything works well, but how to change the order status?
I tried that in this link, but this only works for an older version of Magento. http://blog.chapagain.com.np/magento-how-to-change-order-status-programmatically/
thanks
source share