| Line 154... |
Line 154... |
| 154 |
if(isset($data['response']['response']['payment_process1'])){
|
154 |
if(isset($data['response']['response']['payment_process1'])){
|
| 155 |
$result = json_decode($data['response']['response']['payment_process1'][0]);
|
155 |
$result = json_decode($data['response']['response']['payment_process1'][0]);
|
| 156 |
if(isset($_GET['walletUsed'])) {
|
156 |
if(isset($_GET['walletUsed'])) {
|
| 157 |
$walletUsed = (int)($_GET['walletUsed']);
|
157 |
$walletUsed = (int)($_GET['walletUsed']);
|
| 158 |
}
|
158 |
}
|
| 159 |
$result->results->totalAmount -= $walletUsed;
|
- |
|
| 160 |
$this->session->set_userdata('walletUsed',$walletUsed);
|
159 |
$this->session->set_userdata('walletUsed',$walletUsed);
|
| 161 |
$this->layout->view('checkout/checkout_view',$data);
|
160 |
$this->layout->view('checkout/checkout_view',$data);
|
| 162 |
}
|
161 |
}
|
| 163 |
else{
|
162 |
else{
|
| 164 |
redirect(base_url()."cart");
|
163 |
redirect(base_url()."cart");
|
| Line 445... |
Line 444... |
| 445 |
$_POST['isLoggedIn'] = 'false';
|
444 |
$_POST['isLoggedIn'] = 'false';
|
| 446 |
}
|
445 |
}
|
| 447 |
}
|
446 |
}
|
| 448 |
$addressId = $this->session->userdata('addressId');
|
447 |
$addressId = $this->session->userdata('addressId');
|
| 449 |
$_POST['addressid'] = $addressId;
|
448 |
$_POST['addressid'] = $addressId;
|
| - |
|
449 |
$walletUsed = $this->session->userdata('walletUsed');
|
| - |
|
450 |
$_POST['walletUsed'] = $walletUsed;
|
| 450 |
$_POST['payment_option'] = $_POST['payoption'];
|
451 |
$_POST['payment_option'] = $_POST['payoption'];
|
| 451 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
|
452 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$paymentconfig);
|
| 452 |
error_log('[USER] ' .print_r($authorized,1),3,'/tmp/payments.log');
|
453 |
error_log('[USER] ' .print_r($authorized,1),3,'/tmp/payments.log');
|
| 453 |
error_log('[RESPONSE] '. print_r($data['response']['response'],1),3,'/tmp/payments.log');
|
454 |
error_log('[RESPONSE] '. print_r($data['response']['response'],1),3,'/tmp/payments.log');
|
| 454 |
if(isset($data['response']['response']['payment_submit'][0]) && !empty($data['response']['response']['payment_submit'][0])) {
|
455 |
if(isset($data['response']['response']['payment_submit'][0]) && !empty($data['response']['response']['payment_submit'][0])) {
|