diff --git a/api/application/controllers/Iobpay.php b/api/application/controllers/Iobpay.php index a81641f..aa2b11a 100644 --- a/api/application/controllers/Iobpay.php +++ b/api/application/controllers/Iobpay.php @@ -37,6 +37,7 @@ class iobpay extends REST_Controller public function generateIOBPayToken_post() { $records = $this->post('records'); + $merchant_id = $this->config->item('merchant_id'); $merchant_sub_id = $this->config->item('merchant_sub_id'); @@ -52,10 +53,14 @@ class iobpay extends REST_Controller $merchanttxnid = ""; $user_id = $records['user_id']; + //get User Name and User MObile no by user ID + $user_details = $this->user_management_model->selectCustomRecords(array('name','mobile'),array('id' => $user_id),CSR_USER); + // print_r($user_details); $con_id = $records['con_id']; $udf1 = $records['udf1']; - $udf2 = $records['udf2']; - $udf3 = $records['udf3']; + $udf2 = count($user_details) && $user_details[0]['name'] ? $user_details[0]['name'] : 'NONE'; + $udf3 = count($user_details) && $user_details[0]['mobile'] ? $user_details[0]['mobile'] : 'NONE'; + //print_r($udf2);die(); //echo $encryption_key.$encryption_iv.$sign_key,$merchant_id.$merchant_sub_id.$token_generation_url.$totalamt.$feetype.$merchantreplyurl;