コード例 #1
0
 public function getOtp()
 {
     $input = Xmlicash::otpverify(Input::all());
     //print_r($input);
     $data = Icash::registerkyc($input);
     $output = Xmltoarray::arr($data);
     //print_r($output);
     $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['SENDERREGISTERRESPONSE']['SENDERREGISTERRESULT'];
     $output1 = Xmltoarray::arr($city);
     //print_r($output1); exit;
     if ($output1['SENDERREGISTERRESPONSE']['STATUSCODE'] == 0) {
         $registercomplete = Jsonicash::updateuser($output1['SENDERREGISTERRESPONSE'], Input::all());
         $updateuser = Icash::updateuser($registercomplete);
         return Redirect::to('retailer/icash/login');
     } else {
         return View::make('retailer.icashcard.otpregister')->with('failure', 'Please enter OTP again')->with('transactionid', Input::get('transid'));
     }
 }