AbanteCart Community

AbanteCart Development => Extensions and Add-Ons => Payment Modules => Topic started by: shop on March 31, 2014, 03:34:22 PM

Title: finished orders dont show in admin panel
Post by: shop on March 31, 2014, 03:34:22 PM
Hi,

I have problem with developing one of my payment modules
Evertihing is fine just last step...
when customer finished orders goes to  checkout/success
but never get email notification and order are not in admin panel and not in client history account panel

I have this funtion for callback

   public function callback() {
         $this->load->model('checkout/order');
               $order_info = $this->model_checkout_order->getOrder($order_id);
              $this->model_checkout_order->update($order_id, $this->config->get('default_CARDPAYMENT_order_status_id'), '', TRUE);
         $this->model_checkout_order->confirm($this->request->get['order_id'], $this->config->get('default_CARDPAYMENT_order_status_id'));
         $this->redirect($this->html->getURL('checkout/success'));   
      }

Please advise...

Thanks
Title: Re: finished orders dont show in admin panel
Post by: abantecart on March 31, 2014, 04:46:37 PM
Email is sent at confirmation step:

https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/model/checkout/order.php

See function _confirm line 240