- 28 Out 2013, 14:26
#45441
Peguei a extensão
erro na hora de fechar o pedido
model_checkout_order->confirm($id_pedido[0], $this->config->get('pagseguro_order_aguardando_pagamento'), $comment); } else if($order['order_status_id'] != $this->config->get('pagseguro_order_aguardando_pagamento')){ $this->model_checkout_order->update($id_pedido[0], $this->config->get('pagseguro_order_aguardando_pagamento'), $comment, $update_status_alert); } break; case 'IN_ANALYSIS': if($order['order_status_id'] != $this->config->get('pagseguro_order_analise')){ $this->model_checkout_order->update($id_pedido[0], $this->config->get('pagseguro_order_analise'), '', $update_status_alert); } break; case 'PAID': if($order['order_status_id'] != $this->config->get('pagseguro_order_paga')){ $this->model_checkout_order->update($id_pedido[0], $this->config->get('pagseguro_order_paga'), '', $update_status_alert); } break; case 'AVAILABLE': if($order['order_status_id'] != $this->config->get('pagseguro_order_disponivel')){ $this->model_checkout_order->update($id_pedido[0], $this->config->get('pagseguro_order_disponivel'), '', false); } break; case 'IN_DISPUTE': if($order['order_status_id'] != $this->config->get('pagseguro_order_disputa')){ $this->model_checkout_order->update($id_pedido[0], $this->config->get('pagseguro_order_disputa'), '', $update_status_alert); } break; case 'REFUNDED': if($order['order_status_id'] != $this->config->get('pagseguro_order_devolvida')){ $this->model_checkout_order->update($id_pedido[0], $this->config->get('pagseguro_order_devolvida'), '', $update_status_alert); } break; case 'CANCELLED': if($order['order_status_id'] != $this->config->get('pagseguro_order_cancelada')){ $this->model_checkout_order->update($id_pedido[0], $this->config->get('pagseguro_order_cancelada'), '', $update_status_alert); } break; } } catch (PagSeguroServiceException $e) { $this->log->write('PagSeguro: '.$e->getMessage()); //die($e->getMessage()); } break; default: $this->log->write('PagSeguro: tipo de notificação desconhecido ['.$notificationType->getValue().']'); } } else{ $this->log->write('PagSeguro: Parâmetros de notificação inválidos.'); } } private function getPesoEmGramas($weight_class_id, $peso){ if($this->weight->getUnit($weight_class_id) == 'g'){ return $peso; } return $peso * 1000; } } ?>
Fatal error: Call to undefined method ModelPaymentPagseguro::savePagSeguroOrderStatus() in /home/lightsys/public_html/loja/catalog/controller/payment/pagseguro.php on line 304