I'm writing a simple payment module on v1.5.2.1, which basically charges a credit card. I want to change the order status if payment is failed (e.g. denied credit card).
I see that on catalog/model/checkout/order.php, the two methods, confirm and update, are used for this task. Since the order is not confirmed yet, I only want a status change (e.g. failed). However, without calling the confirm method first, it's not possible to change the status of the order, because of the code on line #573 I guess:
Code: Select all
if ($order_info && $order_info['order_status_id']) {