\catalog\controller\payment\qiwi_rest.php
// Статус проведения счета.
if( $status == 'paid' ) {
if( $order_info['order_status_id'] == 0) {
$this->model_checkout_order->confirm($bill_id, $this->config->get('qiwi_rest_order_status_id'), 'qiwi_rest');
return $param;
}
if( $order_info['order_status_id'] != $this->config->get('qiwi_rest_order_status_id')) {
$this->model_checkout_order->update($bill_id, $this->config->get('qiwi_rest_order_status_id'),'qiwi_rest',TRUE);
}
} elseif( $status == 'waiting') {
if( $order_info['order_status_id'] == 0) {
$this->model_checkout_order->confirm($bill_id, $this->config->get('qiwi_rest_order_status_progress_id'), 'qiwi_rest');
return $param;
}
if( $order_info['order_status_id'] != $this->config->get('qiwi_rest_order_status_progress_id')) {
$this->model_checkout_order->update($bill_id, $this->config->get('qiwi_rest_order_status_progress_id'),'qiwi_rest',TRUE);
}
} else {
if( $order_info['order_status_id'] == 0) {
$this->model_checkout_order->confirm($bill_id, $this->config->get('qiwi_rest_order_status_cancel_id'), 'qiwi_rest');
return $param;
}
if( $order_info['order_status_id'] != $this->config->get('qiwi_rest_order_status_cancel_id')) {
$this->model_checkout_order->update($bill_id, $this->config->get('qiwi_rest_order_status_cancel_id'),'qiwi_rest',TRUE);
}
}
заменить на
// Статус проведения счета.
if( $status == 'paid' ) {
if( $order_info['order_status_id'] == 0) {
$this->model_checkout_order->confirm($bill_id, $this->config->get('qiwi_rest_order_status_id'), 'комментарий');
return $param;
}
if( $order_info['order_status_id'] != $this->config->get('qiwi_rest_order_status_id')) {
$this->model_checkout_order->update($bill_id, $this->config->get('qiwi_rest_order_status_id'),'комментарий',TRUE);
}
} elseif( $status == 'waiting') {
if( $order_info['order_status_id'] == 0) {
$this->model_checkout_order->confirm($bill_id, $this->config->get('qiwi_rest_order_status_progress_id'), 'комментарий');
return $param;
}
if( $order_info['order_status_id'] != $this->config->get('qiwi_rest_order_status_progress_id')) {
$this->model_checkout_order->update($bill_id, $this->config->get('qiwi_rest_order_status_progress_id'),'комментарий',TRUE);
}
} else {
if( $order_info['order_status_id'] == 0) {
$this->model_checkout_order->confirm($bill_id, $this->config->get('qiwi_rest_order_status_cancel_id'), 'комментарий');
return $param;
}
if( $order_info['order_status_id'] != $this->config->get('qiwi_rest_order_status_cancel_id')) {
$this->model_checkout_order->update($bill_id, $this->config->get('qiwi_rest_order_status_cancel_id'),'комментарий',TRUE);
}
}