Subversion Repositories SmartDukaan

Rev

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

Rev 16682 Rev 17571
Line 577... Line 577...
577
	}
577
	}
578
 
578
 
579
	public function orderconfirmation(){
579
	public function orderconfirmation(){
580
		if(isset($_GET['paymentId']) && !empty($_GET['paymentId'])){
580
		if(isset($_GET['paymentId']) && !empty($_GET['paymentId'])){
581
			//$_GET['rechargeOrderId'] = $_GET['rechargeOrderId'];
581
			//$_GET['rechargeOrderId'] = $_GET['rechargeOrderId'];
-
 
582
			$authorized = $this->session->userdata('authorized');
582
			$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
583
			$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
583
			$data['stylesheet'] = 'recharge.css';
584
			$data['stylesheet'] = 'recharge.css';
584
			$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('rechargeOrderConfirmation'));
585
			$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('rechargeOrderConfirmation'));
-
 
586
		    if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) {
-
 
587
	        	$userId = $this->session->userdata['authorized']['Id'];
-
 
588
	        	$ch = curl_init();
-
 
589
				$url = 'http://shop2020.in:8080/mobileapi/private-deals/1/?userId=7445884&isLoggedIn=true&privateDealUser=true';
-
 
590
				// Set the url, number of POST vars, POST data
-
 
591
				curl_setopt($ch, CURLOPT_URL, $url);
-
 
592
				curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
-
 
593
				
-
 
594
				// Disabling SSL Certificate support temporarly
-
 
595
				curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
-
 
596
				
-
 
597
				// Execute post
-
 
598
				$result = curl_exec($ch);
-
 
599
				if ($result === FALSE) {
-
 
600
					die('Curl failed: ' . curl_error($ch));
-
 
601
				}
-
 
602
				$res = json_decode($result,1);
-
 
603
	        	$data['privatedeals']=$res;
-
 
604
	        }
585
			$this->layout->view('recharge/recharge_view',$data);
605
			$this->layout->view('recharge/recharge_view',$data);
586
		}
606
		}
587
 
607
 
588
	}
608
	}
589
 
609