Subversion Repositories SmartDukaan

Rev

Rev 10876 | Rev 11012 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10876 Rev 10890
Line 573... Line 573...
573
		}
573
		}
574
		setCache($rechargeconfig['module'],$cachemodule,$data['response']);
574
		setCache($rechargeconfig['module'],$cachemodule,$data['response']);
575
		$this->layout->view('recharge/recharge_view',$data);
575
		$this->layout->view('recharge/recharge_view',$data);
576
 
576
 
577
	}
577
	}
-
 
578
	public function hdfcRecahrgeResponse(){
-
 
579
		if(isset($_POST)){
-
 
580
			$paymentconfig = $this->config->item('hdfcRecahrgeResponse');
-
 
581
			$authorized = $this->session->userdata('authorized');
-
 
582
			if(isset($authorized) && !empty($authorized)){
-
 
583
				$_POST['userId'] = $authorized['Id'];
-
 
584
				if($authorized['isLoggedIn'] == 1){
-
 
585
					$_POST['isLoggedIn'] = 'true';
-
 
586
				}
-
 
587
				elseif(isset($authorized['isLoggedIn']) && empty($authorized['isLoggedIn'])) {
-
 
588
					$_POST['isLoggedIn'] = 'false';
-
 
589
				}
-
 
590
			}
-
 
591
			$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
-
 
592
			if(isset($data['response']['response']['hdfc_recharge_response'][0]->response) && !empty($data['response']['response']['hdfc_recharge_response'][0]->response)){
-
 
593
				$redirectUrl = $data['response']['response']['hdfc_recharge_response'][0]->response->redirectUrl;
-
 
594
				redirect($redirectUrl);
-
 
595
			}
-
 
596
			else{
-
 
597
				redirect(base_url());
-
 
598
			}	
-
 
599
		}else{
-
 
600
			redirect(base_url());
-
 
601
		}
-
 
602
	}
578
 
603
 
579
	
604
	
580
}
605
}
581
 
606
 
582
/* End of file welcome.php */
607
/* End of file welcome.php */