"; print_r($data); exit(); $insert = $this->common_m->insert($data,'payment_info'); if($insert): $this->common_m->update(array('is_payment'=>1,'is_expired'=>0,'start_date'=>d_time(),'end_date'=>add_year($package_info['type']),'account_type'=>$account_type),$u_info['user_id'],'users'); $this->email_m->send_payment_paid_email($data,'Credit Card'); // send payment transaction succesfull mail with transaction id if(isset($settings['admin_invoice']) && $settings['admin_invoice']==1): $this->email_m->get_paid_invoice_to_admin($data,'Credit Card'); endif; redirect(base_url('stripe-payment-success/'.$u_info['username'])); endif; } public function offline_payment($slug,$account_slug) { $data = array(); $data['page_title'] = "Offline Payment"; $data['slug'] = $slug; $send = $this->email_m->offline_payment_request_mail($slug,$account_slug); if($send==TRUE){ $data['status'] = 1; $data['msg'] = 'Offline payment request send successfully'; }else{ $data['status'] = 0; $data['msg'] = 'Somethings Were Wrong!! Try again '; } $data['u_info'] = get_all_user_info_slug($slug); $data['main_content'] = $this->load->view('payment/payment_success', $data, TRUE); $this->load->view('payment_index',$data); } }