Subversion Repositories SmartDukaan

Rev

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

Rev 11413 Rev 11418
Line 159... Line 159...
159
			$_POST['payment_option'] = $_POST['payoption'];
159
			$_POST['payment_option'] = $_POST['payoption'];
160
			$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
160
			$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
161
			if(isset($data['response']['response']['payment_submit'][0]) && !empty($data['response']['response']['payment_submit'][0])){
161
			if(isset($data['response']['response']['payment_submit'][0]) && !empty($data['response']['response']['payment_submit'][0])){
162
				$paymentSubmit = $data['response']['response']['payment_submit'][0];
162
				$paymentSubmit = $data['response']['response']['payment_submit'][0];
163
				if(isset($paymentSubmit->response->isPaymentRedirect) && $paymentSubmit->response->isPaymentRedirect == 1){
163
				if(isset($paymentSubmit->response->isPaymentRedirect) && $paymentSubmit->response->isPaymentRedirect == 1){
164
					$image = base_url().'assets/images/loading.gif';
164
					$image = './assets/images/loading.gif';
165
					$location = $paymentSubmit->response->redirectUrl;
165
					$location = $paymentSubmit->response->redirectUrl;
166
					echo '<html><head><meta http-equiv="refresh" content="1;url='.$paymentSubmit->response->redirectUrl.'">
166
					echo '<html><head><meta http-equiv="refresh" content="1;url='.$paymentSubmit->response->redirectUrl.'">
167
  					<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
167
  					<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
168
  					<title>Saholic Mobile Site: Redirecting to <'.$paymentSubmit->response->gatewayName.'> Payment Gateway</title>
168
  					<title>Saholic Mobile Site: Redirecting to <'.$paymentSubmit->response->gatewayName.'> Payment Gateway</title>
169
 					</head>
169
 					</head>
Line 272... Line 272...
272
			$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
272
			$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
273
			if(isset($data['response']['response']['ebs_processing'][0]->response)){
273
			if(isset($data['response']['response']['ebs_processing'][0]->response)){
274
				$redirectUrl = $data['response']['response']['ebs_processing'][0]->response->redirectUrl;
274
				$redirectUrl = $data['response']['response']['ebs_processing'][0]->response->redirectUrl;
275
				$redirectUrl = explode('?', $redirectUrl);
275
				$redirectUrl = explode('?', $redirectUrl);
276
				$redirectUrl = base_url().'ebs-pay-response/?'.$redirectUrl[1];
276
				$redirectUrl = base_url().'ebs-pay-response/?'.$redirectUrl[1];
277
				$image = base_url().'assets/images/loading.gif';
277
				$image = './assets/images/loading.gif';
278
				echo '<html><head><meta http-equiv="refresh" content="2;url='.$redirectUrl.'">
278
				echo '<html><head><meta http-equiv="refresh" content="2;url='.$redirectUrl.'">
279
					<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
279
					<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
280
  					<title>Saholic Mobile Site:</title>
280
  					<title>Saholic Mobile Site:</title>
281
 					</head>
281
 					</head>
282
 						<body>
282
 						<body>