public function getBalance()
 {
     $xmlinput = Xmlicash::channelpartnerlimit();
     $jsonresult = Icash::registerkyc($xmlinput);
     $output = Xmltoarray::arr($jsonresult);
     $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['CHANNELPARTNERLIMITRESPONSE']['CHANNELPARTNERLIMITRESULT'];
     $output1 = Xmltoarray::arr($city);
     //print_r($output1); exit;
     if ($output1 && $output1['CHANNELPARTNERLIMITRESPONSE']['STATUSCODE'] == 0) {
         $admin = Icash::updatebalance($output1['CHANNELPARTNERLIMITRESPONSE']['LIMIT']);
         //print_r($admin);
     } else {
         return Redirect::to('admin/noservice');
     }
 }
 public function getNeftcanceltran()
 {
     $input = Xmlicash::neftcancel(Input::all());
     $data = Icash::registerkyc($input);
     $output = Xmltoarray::arr($data);
     $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['NEFTCANCELTRANSACTIONRESPONSE']['NEFTCANCELTRANSACTIONRESULT'];
     $output1 = Xmltoarray::arr($city);
     //print_r($output1); exit;
     if ($output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUSCODE'] == 0) {
         $jsoninput = Jsonicash::neftcancel(Input::all(), $output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUSCODE']);
         $jsonresult = Icash::neftcancel($jsoninput);
         return Redirect::to('retailer/icash/viewtransaction')->with('success', $output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUS']);
     } else {
         $jsoninput = Jsonicash::neftcancel(Input::all(), $output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUSCODE']);
         $jsonresult = Icash::neftcancel($jsoninput);
         //print_r($jsoninput); exit;
         return Redirect::to('retailer/icash/viewtransaction')->with('failure', $output1['NEFTCANCELTRANSACTIONRESPONSE']['STATUS']);
     }
 }
Пример #3
0
 public function postUpdatekyc()
 {
     $userexist = Icash::where('icc_usercardno', Input::get('cardno'))->get();
     if ($userexist) {
         $input = array('icc_kyc' => Input::get('kyc'), 'icc_username' => Input::get('username'), 'icc_usermname' => Input::get('usermiddlename'), 'icc_userlname' => Input::get('userlastname'), 'icc_usermothername' => Input::get('usermothermaidename'), 'icc_user_dob' => Input::get('userdateofbirth'), 'icc_useremail' => Input::get('useremail'), 'icc_usermobile' => Input::get('icc_usermobile'), 'icc_usercity' => Input::get('usercity'), 'icc_useraddress' => Input::get('useraddress'), 'icc_userpincode' => Input::get('userpincode'), 'icc_useridprooftype' => Input::get('useridprooftype'), 'icc_useridproof' => Input::get('useridproof'), 'icc_useridproofurl' => Input::get('useridproofurl'), 'icc_useraddrprooftype' => Input::get('useraddrprooftype'), 'icc_userproof' => Input::get('useraddrproof'), 'icc_userproofurl' => Input::get('useraddrproofurl'));
         $update = Icash::where('icc_usercardno', Input::get('cardno'))->update($input);
     }
 }