diff --git a/www/application/controllers/Paymnt.php b/www/application/controllers/Paymnt.php index dc31c892..38563024 100644 --- a/www/application/controllers/Paymnt.php +++ b/www/application/controllers/Paymnt.php @@ -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 } } diff --git a/www/application/views/users/view_payreciepts.php b/www/application/views/users/view_payreciepts.php index 4482c93c..b69f6bf1 100644 --- a/www/application/views/users/view_payreciepts.php +++ b/www/application/views/users/view_payreciepts.php @@ -1,5 +1,257 @@ + + +
|
+
+
+
+ Date Added
+ |
+ =$added?> | +
|
+
+
+
+ Payment Method
+ |
+ Online
+ |
+
|
+
+
+
+ Confirmation
+ |
+ =$confirmation?> | +
|
+
+
+
+ Customer
+ |
+
+
+
+
+
+
+
+
+
+ Dan Wilson
+
+
+
+
+ |
+
|
+
+
+
+ Email
+ |
+ + dam@consilting.com + | +
|
+
+
+
+ Phone
+ |
+ +6141 234 567 | +
|
+
+
+
+ Invoice
+
+ |
+ + #INV-000414 + | +
|
+
+
+
+ Shipping
+
+ |
+ + #SHP-0025410 + | +
|
+
+
+
+ Reward Points
+
+ |
+ 600 | +