AbanteCart Community

eCommerce construction => Installation and Configuration => Topic started by: govindka on December 30, 2017, 01:07:19 AM

Title: Payment Gateway Redirection
Post by: govindka on December 30, 2017, 01:07:19 AM
Hello all,

Noob here.

Our ecommerce venture has Payumoney as one of its payment extensions. We are successfully directed to the payment gateway but after successful completion of the payment, it isn't being redirected to our website.
It goes to the following link and shows a 'File not found'.

I have been playing around with a callback function in a php file (payumoney.php) at the extension's directory. The code I fiddle with is below. It may not be of any importance. 

public function callbackpum()
    // $this->loadLanguage('si_payumoney/si_payumoney');
     include DIR_EXT .'si_payumoney/core/payuResponseHandler.php';
     $error = '';
     if ($hash != $posted_hash) {
      } else {
 if($rtndata['status'] == 'success')
       $order_id = $rtndata['productinfo'];
      // if($order_id==$this->session->data['order_id'])
            $order_info = $this->model_checkout_order->getOrder($order_id);
            // if((isset($order_info['payment_firstname']) && isset($order_info['payment_lastname'])) && strcmp($rtndata['billing_name'],$order_info['payment_firstname'] .' '. $order_info['payment_lastname']) == 0) {
               $this->model_checkout_order->confirm($order_id, $this->config->get('si_payumoney_order_status_id'));
               $this->model_checkout_order->updatePaymentMethodData( $order_id,$rtndata);
            //} else {
            //    $error = $this->language->get('text_unable');
       // }   
        //else {
         //       $error = $this->language->get('text_conflict');
         $error = $this->language->get('text_declined');


Anyhoo, It would help a ton if you could provide guidance on solving the issue. The description might have been vague but any input would help our cause A LOT.

Title: Re: Payment Gateway Redirection
Post by: abolabo on January 01, 2018, 07:39:37 PM
is your controller presents inside array $controllers of your file main.php of your extension?