fix
This commit is contained in:
@@ -19,6 +19,8 @@ class Paymnt extends Users_Controller {
|
||||
$this->RenderUserPage('users/view_startpaymus', $data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
private function cardListData($limit){
|
||||
$data = array();
|
||||
$mysql = "SELECT * FROM creditcard WHERE member_id = " . $_SESSION['member_id'] . " AND status =3 AND active =1 ORDER BY id DESC limit ".$limit;
|
||||
@@ -67,16 +69,17 @@ class Paymnt extends Users_Controller {
|
||||
$this->load->model('backend_model');
|
||||
$res = $this->backend_model->wrenchboard_api($cardData, $out);
|
||||
|
||||
// var_dump($out);
|
||||
|
||||
if ($res == PHP_API_OK) {
|
||||
// var_dump($res);
|
||||
// exit();
|
||||
$out['order_id'] = $res;
|
||||
if ($res > 0 && isset($out) && isset($out['confirmation']) && $out['confirmation']!='') {
|
||||
// we are good
|
||||
$this->session->set_flashdata('in',1);
|
||||
redirect("paymnt/cardreciepts");
|
||||
$this->session->set_flashdata('reciept_data', $out);
|
||||
redirect("paymnt/cardreciepts");
|
||||
|
||||
} else {
|
||||
|
||||
$this->session->set_flashdata('in',1);
|
||||
// not good
|
||||
$this->session->set_flashdata('reciept_data', $out);
|
||||
redirect("paymnt/cardreciepts");
|
||||
}
|
||||
|
||||
@@ -94,9 +97,8 @@ class Paymnt extends Users_Controller {
|
||||
}
|
||||
|
||||
public function cardreciepts(){
|
||||
echo "ameye olu";
|
||||
$data = array();
|
||||
|
||||
|
||||
$data = array_merge($this->getSessionArray(), $this->session->flashdata('reciept_data'));
|
||||
$this->RenderUserPage('users/view_payreciepts', $data); // return back to card page
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user