public static function updateResponse(DirecpayResponse $dp)
 {
     $response = $dp->getResponse();
     $txn = OnlinePayment::where('order_id', $response['merchantordernumber'])->first();
     $dpTxn = $txn->gw;
     $dpTxn->fill(['status' => $response['status'], 'dp_refrence_id' => $response['direcpayreferenceid']]);
     $dpTxn->save();
 }
 public function selectPaymentGateway()
 {
     $data = Input::all();
     Session::flash('post_data', $data);
     $planType = Auth::user()->plan_type == PREPAID_PLAN ? 'prepaid' : 'frinternet';
     $activeGateways = OnlinePayment::getActivePaymentGateways();
     return View::make('user.select_pg')->with('activeGateways', $activeGateways)->with('planType', $planType);
 }