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