public function frinternetResponse() { try { $response = DP::response(Input::all()); DirecpayTransaction::updateResponse($response); $details = $response->getDetails(); if ($response->txnSucceed()) { Refillcoupons::refillOnline(Auth::id(), $details); $this->notifySuccess('Account Refilled.'); } else { $this->notifyError('Account Refill Failed.'); } return Redirect::route('frinternet.dashboard'); } catch (Exception $e) { $this->notifyError($e->getMessage()); return Redirect::route('frinternet.dashboard'); } }