Jump to content

Search the Community

Showing results for tags 'dados via post'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Q&A Desenvolvimento
    • Perguntas e respostas rápidas
  • Web Development
    • HTML e CSS
    • Javascript
    • PHP
    • Ruby
    • Python
    • Java
    • .NET
    • Docker, Kubernets and other environments
    • WordPress
    • Mobile
    • Agile
    • Desenvolvimento de Games
    • Banco de Dados
    • Design and UX
    • Algoritmos & Outras Tecnologias
  • Entretenimento e uso pessoal
    • Segurança & Malwares
    • Geral
    • iMasters's pub

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Google+


Hangouts


Skype


Twitter


deviantART


Github


Flickr


LinkedIn


Pinterest


Facebook


Site Pessoal


Localização


Interesses

Found 1 result

  1. Boa noite a todos. Resolvendo problemas, e vindo com mais problemas rs. Fiz a integração com a Cielo, porém agora estou com problemas no recebimento dos dados do pedido via POST que eles mandam na página de Notificação e Mudança de Status. Estou usando o framework CodeIgniter. Recebo E-mail deles com os seguintes dados. Assunto: Checkout Cielo - Falha na tentativa de envio do POST de mudança de status Falha na tentativa de envio do POST de mudança de status [https://cieloecommerce.cielo.com.br] Dados do pedido Número do pedido 15b29d12c3a24f9a9008c5ce2ad6edd6 URL de mudança de status http://tests.mubrecords.com/store/status/ Código de status HTTP 404 Conteúdo do Post checkout_cielo_order_number 15b29d12c3a24f9a9008c5ce2ad6edd6 amount 8480 order_number 2c25c2b684564bc2c3253cb68f862362 payment_status 3 Meu Route.php $route['store/notify'] = 'cart/notify/'; $route['store/status'] = 'cart/status/'; E no controller Cart.php public function notify(){ $order_number = $this->input->post('order_number'); if(isset($order_number)){ $mod_ship = $this->input->post('shipping_type'); $name_ship = $this->input->post('shipping_name'); $price_ship = $this->input->post('shipping_price'); $cep_ship = $this->input->post('shipping_adress_zipcode'); $dist_ship = $this->input->post('shipping_adress_district'); $city_ship = $this->input->post('shipping_adress_city'); $state_ship = $this->input->post('shipping_state'); $adre_ship1 = $this->input->post('shipping_adress_line1'); $adre_ship2 = $this->input->post('shipping_adress_line2'); $number_ship = $this->input->post('shipping_adress_number'); $details_ship = $mod_ship.'<br>'. $name_ship.'<br>'. $price_ship.'<br>'. $cep_ship.'<br>'. $state_ship.'<br>'. $city_ship.'<br>'. $adre_ship1.', '.$number_ship.', '.$adre_ship2.', '.$dist_ship; $valor_total_cf = $valor_total + $price_ship; $data = array( 'details_ship' => $details_ship, 'order_price' => $valor_total_cf, 'order_shipping' => $price_ship, 'order_status' => $this->input->post('payment_status'), 'order_tid' => $this->input->post('tid') ); $myOrder = $this->store_model->upMyOrders($order_number, $data); echo '<status>OK</status>'; $this->load->view('store/notify'); } else { redirect(base_url()); } } public function status(){ $order_number = $this->input->post('order_number'); $data = array( 'order_status' => $this->input->post('payment_status'), ); $myOrder = $this->store_model->upMyOrders($order_number, $data); echo '<status>OK</status>'; $this->load->view('store/status'); } E o Store_model.php public function upMyOrders($order_number, $data){ $query = $this->db->where(array('order_number' => $order_number)) ->update('tb_store_orders', $data); return true; } Tem algo de errado? Alguém pra dar uma luz?
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.