Commit 5cf6017c by Jansa Jose

Merge branch 'master' of https://gitlab.techware.co.in/timeout/timeOut into jansa

parents 7cdbf64d 6a866479
...@@ -1399,21 +1399,6 @@ class Api_model extends CI_Model { ...@@ -1399,21 +1399,6 @@ class Api_model extends CI_Model {
}catch(Exception $e){} }catch(Exception $e){}
} }
function updateCustomTxn($txnType = '', ){
try{
$insertData = array('customer_id'=>$user_id,'transaction_type'=>$txnType,
'created_date'=>date('Y-m-d h:i:s'),'amount'=>$amount,
'transaction_code'=>$txnCode);
$this->db->insert('wallet_transactions',$insertData);
$last_id = $this->db->insert_id();
$res = array('status'=>1,'transaction_id'=>$txnCode);
}catch(Exception $e){
$res = array('status'=>0,'message'=>'Ohh No!! Something went South!!','code'=>'ER06');
}
return $res;
}
function update_payment($response='',$transactionid='',$last_id,$status,$eventid = ''){ function update_payment($response='',$transactionid='',$last_id,$status,$eventid = ''){
try{ try{
if(empty($last_id)){ if(empty($last_id)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment