public function getTopupcal() { $amount = Input::get('amount'); $jsonresult = Icash::topupval(Input::get('amount')); //print_r($jsonresult); exit; if ($jsonresult && $jsonresult->status == "success") { $service = 0.2 * $amount / 100; //echo $service; $total = $amount + $service; return Redirect::to('retailer/icash/topup')->with('success', "Balance added to imps Wallet"); } else { return Redirect::to('retailer/icash/topup')->with('failure', "insufficient Balance at user account"); } }