public function getTopupfin() { $input = Xmlicash::topup(Input::all()); $data = Icash::registerkyc($input); $output = Xmltoarray::arr($data); //print_r($input); $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['TOPUP_V2RESPONSE']['TOPUP_V2RESULT']; $output1 = Xmltoarray::arr($city); //print_r($output1); exit; if ($output1['TOPUP_V2RESPONSE']['STATUSCODE'] == 0) { $jsoninput = Jsonicash::topup(Input::all(), $output1['TOPUP_V2RESPONSE']['TOPUPTRANSID']); $jsonresult = Icash::topupnew($jsoninput); //print_r($jsoninput);exit; return Redirect::to('retailer/icash/topup')->with('success', $output1['TOPUP_V2RESPONSE']['STATUS']); } else { return Redirect::to('retailer/icash/topup')->with('failure', $output1['TOPUP_V2RESPONSE']['STATUS']); } }