| Line 193... |
Line 193... |
| 193 |
$_POST['payment_option'] = $_POST['payoption'];
|
193 |
$_POST['payment_option'] = $_POST['payoption'];
|
| 194 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
|
194 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
|
| 195 |
if(isset($data['response']['response']['payment_submit'][0]) && !empty($data['response']['response']['payment_submit'][0])){
|
195 |
if(isset($data['response']['response']['payment_submit'][0]) && !empty($data['response']['response']['payment_submit'][0])){
|
| 196 |
$paymentSubmit = $data['response']['response']['payment_submit'][0];
|
196 |
$paymentSubmit = $data['response']['response']['payment_submit'][0];
|
| 197 |
if(isset($paymentSubmit->response->isPaymentRedirect) && $paymentSubmit->response->isPaymentRedirect == 1){
|
197 |
if(isset($paymentSubmit->response->isPaymentRedirect) && $paymentSubmit->response->isPaymentRedirect == 1){
|
| 198 |
$image = base_url().'/images/loading.gif';
|
198 |
$image = base_url().'assets/images/loading.gif';
|
| 199 |
$location = $paymentSubmit->response->redirectUrl;
|
199 |
$location = $paymentSubmit->response->redirectUrl;
|
| 200 |
echo '<html><head><meta http-equiv="refresh" content="2;url='.$paymentSubmit->response->redirectUrl.'">
|
200 |
echo '<html><head><meta http-equiv="refresh" content="1;url='.$paymentSubmit->response->redirectUrl.'">
|
| 201 |
<title>Saholic Mobile Site: Redirecting to <'.$paymentSubmit->response->gatewayName.'> Payment Gateway</title>
|
201 |
<title>Saholic Mobile Site: Redirecting to <'.$paymentSubmit->response->gatewayName.'> Payment Gateway</title>
|
| 202 |
</head>
|
202 |
</head>
|
| 203 |
<body>
|
203 |
<body>
|
| 204 |
<div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
|
204 |
<div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
|
| 205 |
<div align="center" class="img">
|
205 |
<div align="center" class="img">
|
| Line 224... |
Line 224... |
| 224 |
$response = $this->mcurl->execute($url);
|
224 |
$response = $this->mcurl->execute($url);
|
| 225 |
$data['response'] = $response['ebs']['response'];
|
225 |
$data['response'] = $response['ebs']['response'];
|
| 226 |
$response = $this->magento_model->payment_submit($data);
|
226 |
$response = $this->magento_model->payment_submit($data);
|
| 227 |
if(isset($response) && !empty($response)){
|
227 |
if(isset($response) && !empty($response)){
|
| 228 |
$ebs = $response[0]->response;
|
228 |
$ebs = $response[0]->response;
|
| - |
|
229 |
$image = base_url().'assets/images/loading.gif';
|
| 229 |
echo '<html>
|
230 |
echo '<html>
|
| 230 |
<head>
|
231 |
<head>
|
| 231 |
<title>m.saholic.com: Redirecting to EBS Payment Page</title>
|
232 |
<title>m.saholic.com: Redirecting to EBS Payment Page</title>
|
| 232 |
</head>
|
233 |
</head>
|
| 233 |
<body>
|
234 |
<body>
|
| 234 |
<div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
|
235 |
<div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
|
| 235 |
<div align="center" class="img">
|
236 |
<div align="center" class="img">
|
| 236 |
<img title="loading" alt="loading" src="'.base_url().'assets/images/loading.gif">
|
237 |
<img title="loading" alt="loading" src="'.$image.'">
|
| 237 |
</div>
|
238 |
</div>
|
| 238 |
<div style="display:none">
|
239 |
<div style="display:none">
|
| 239 |
<form method="post" action="'.$ebs->postAction.'" name="frmTransaction" id="frmTransaction">
|
240 |
<form method="post" action="'.$ebs->postAction.'" name="frmTransaction" id="frmTransaction">
|
| 240 |
<!-- Account Id -->
|
241 |
<!-- Account Id -->
|
| 241 |
<input name="account_id" type="hidden" value="'.$ebs->account_id.'" />
|
242 |
<input name="account_id" type="hidden" value="'.$ebs->account_id.'" />
|
| Line 305... |
Line 306... |
| 305 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
|
306 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
|
| 306 |
if(isset($data['response']['response']['ebs_processing'][0]->response)){
|
307 |
if(isset($data['response']['response']['ebs_processing'][0]->response)){
|
| 307 |
$redirectUrl = $data['response']['response']['ebs_processing'][0]->response->redirectUrl;
|
308 |
$redirectUrl = $data['response']['response']['ebs_processing'][0]->response->redirectUrl;
|
| 308 |
$redirectUrl = explode('?', $redirectUrl);
|
309 |
$redirectUrl = explode('?', $redirectUrl);
|
| 309 |
$redirectUrl = base_url().'ebs-pay-response/?'.$redirectUrl[1];
|
310 |
$redirectUrl = base_url().'ebs-pay-response/?'.$redirectUrl[1];
|
| - |
|
311 |
$image = base_url().'assets/images/loading.gif';
|
| 310 |
echo '<html><head><meta http-equiv="refresh" content="2;url='.$redirectUrl.'">
|
312 |
echo '<html><head><meta http-equiv="refresh" content="2;url='.$redirectUrl.'">
|
| 311 |
<title>Saholic Mobile Site:</title>
|
313 |
<title>Saholic Mobile Site:</title>
|
| 312 |
</head>
|
314 |
</head>
|
| 313 |
<body>
|
315 |
<body>
|
| 314 |
<div style="text-align:center; margin-top:200px;">'.$data['response']['response']['ebs_processing'][0]->response->redirectMessage.'</div>
|
316 |
<div style="text-align:center; margin-top:200px;">'.$data['response']['response']['ebs_processing'][0]->response->redirectMessage.'</div>
|
| 315 |
<div align="center" class="img">
|
317 |
<div align="center" class="img">
|
| 316 |
<img title="loading" alt="loading" src="">
|
318 |
<img title="loading" alt="loading" src="'.$image.'">
|
| 317 |
</div>
|
319 |
</div>
|
| 318 |
</body>
|
320 |
</body>
|
| 319 |
</html>';
|
321 |
</html>';
|
| 320 |
}
|
322 |
}
|
| 321 |
}
|
323 |
}
|