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']); } }