Author Topic: Payment Gateway Redirection  (Read 2908 times)

Offline govindka

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Payment Gateway Redirection
« 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'.
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.

« Last Edit: December 30, 2017, 01:09:51 AM by govindka »

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Payment Gateway Redirection
« Reply #1 on: January 01, 2018, 07:39:37 PM »
is your controller presents inside array $controllers of your file main.php of your extension?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod