eCommerce construction > Installation and Configuration

Payment Gateway Redirection

(1/1)

govindka:
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'.
payumoneydotcom/payment/www.thefishfactory.in/index.php?rt=extension/si_payumoney/callbackpum

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');
     $this->load->language('si_payumoney/si_payumoney');
     include DIR_EXT .'si_payumoney/core/payuResponseHandler.php';
     $error = '';
     if ($hash != $posted_hash) {
         $this->redirect($this->html->getSecureURL('extension/si_payumoney/error'));
      } else {
         $this->redirect($this->html->getSecureURL('checkout/success'));
      }
 if($rtndata['status'] == 'success')
     {
       $order_id = $rtndata['productinfo'];
      // if($order_id==$this->session->data['order_id'])
       //{
            $this->load->model('checkout/order');
            $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');
        //}   
      
         
      
     }
     else
     {
         $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.

abolabo:
is your controller presents inside array $controllers of your file main.php of your extension?

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod