| Line 169... |
Line 169... |
| 169 |
}
|
169 |
}
|
| 170 |
elseif(isset($_POST['submit'])){
|
170 |
elseif(isset($_POST['submit'])){
|
| 171 |
if(isset($_POST['captcha_response_field']) && !empty($_POST['captcha_response_field'])){
|
171 |
if(isset($_POST['captcha_response_field']) && !empty($_POST['captcha_response_field'])){
|
| 172 |
$captcha = $this->session->userdata('captcha');
|
172 |
$captcha = $this->session->userdata('captcha');
|
| 173 |
if(strcmp($captcha,$_POST['captcha_response_field']) != 0){
|
173 |
if(strcmp($captcha,$_POST['captcha_response_field']) != 0){
|
| 174 |
if(isset($_POST['payoption']) && $_POST['payoption'] == 3000){
|
174 |
if(isset($_POST['payoption']) && ($_POST['payoption'] == 3000) || $_POST['payoption'] == 3001) {
|
| 175 |
$this->session->set_userdata('cod',1);
|
175 |
$this->session->set_userdata('cod',1);
|
| 176 |
}
|
176 |
}
|
| 177 |
redirect(base_url().'payment');
|
177 |
redirect(base_url().'payment');
|
| 178 |
}
|
178 |
}
|
| 179 |
}
|
179 |
}
|
| Line 387... |
Line 387... |
| 387 |
$response = $this->mcurl->execute($url);
|
387 |
$response = $this->mcurl->execute($url);
|
| 388 |
$data['response'] = $response['innoviti']['response'];
|
388 |
$data['response'] = $response['innoviti']['response'];
|
| 389 |
$response = $this->magento_model->payment_submit($data);
|
389 |
$response = $this->magento_model->payment_submit($data);
|
| 390 |
if(isset($response) && !empty($response)){
|
390 |
if(isset($response) && !empty($response)){
|
| 391 |
$innoviti = $response[0]->response;
|
391 |
$innoviti = $response[0]->response;
|
| 392 |
echo '
|
- |
|
| 393 |
<div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
|
- |
|
| 394 |
<div align="center" class="img">
|
- |
|
| 395 |
<img title="loading" alt="loading" src="../assets/images/loading.gif">
|
- |
|
| 396 |
</div>
|
- |
|
| 397 |
<form method="post" action="'.$innoviti->action.'" name="frmTransaction" id="frmTransaction">
|
392 |
echo '<form method="post" action="'.$innoviti->action.'" name="frmTransaction" id="frmTransaction">
|
| 398 |
<input name="merchantId" type="hidden" value="'.$innoviti->merchantId.'" />
|
393 |
<input name="merchantId" type="hidden" value="'.$innoviti->merchantId.'" />
|
| 399 |
<input name="subMerchantId" type="hidden" value="'.$innoviti->subMerchantId.'" />
|
394 |
<input name="subMerchantId" type="hidden" value="'.$innoviti->subMerchantId.'" />
|
| 400 |
<!-- Transaction Details -->
|
395 |
<!-- Transaction Details -->
|
| 401 |
<input name="orderId" type="hidden" value="'.$innoviti->orderId.'" />
|
396 |
<input name="orderId" type="hidden" value="'.$innoviti->orderId.'" />
|
| 402 |
<input name="amt" type="hidden" value="'.$innoviti->amt.'" />
|
397 |
<input name="amt" type="hidden" value="'.$innoviti->amt.'" />
|
| Line 407... |
Line 402... |
| 407 |
<input name="mobile" type="hidden" value="'.$innoviti->mobile.'" />
|
402 |
<input name="mobile" type="hidden" value="'.$innoviti->mobile.'" />
|
| 408 |
<input name="emailId" type="hidden" value="'.$innoviti->emailId.'" />
|
403 |
<input name="emailId" type="hidden" value="'.$innoviti->emailId.'" />
|
| 409 |
<input name="redirUrl" type="hidden" value="'.$innoviti->redirUrl.'" />
|
404 |
<input name="redirUrl" type="hidden" value="'.$innoviti->redirUrl.'" />
|
| 410 |
<input name="chksum" type="hidden" value="'.$innoviti->chksum.'" />
|
405 |
<input name="chksum" type="hidden" value="'.$innoviti->chksum.'" />
|
| 411 |
<input name="isCtx" type="hidden" value="NO" />
|
406 |
<input name="isCtx" type="hidden" value="NO" />
|
| - |
|
407 |
<input name="submitted" value="Submit" type="submit" />
|
| - |
|
408 |
<input value="Reset" type="reset" />
|
| 412 |
<script type="text/javascript">
|
409 |
<script type="text/javascript">
|
| 413 |
document.getElementById("frmTransaction").submit();
|
410 |
document.getElementById("frmTransaction").submit();
|
| 414 |
</script>
|
411 |
</script>
|
| 415 |
</form>';
|
412 |
</form>';
|
| 416 |
}
|
413 |
}
|