AbanteCart Development > Payment Modules

finished orders dont show in admin panel

(1/1)

shop:
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

abantecart:
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

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod