original_string: private function store($data)
      {
          if (array_key_exists('txn_id', $data)) {
              $order = IpnOrder::firstOrNew(array('txn_id' => $data['txn_id']));
              $order->fill($data);
          } else {
              $order = new IpnOrder($data);
          }
          $order->full_ipn = json_encode(Input::all());
          $order->save();
  
          $this->storeOrderItems($order, $data);
  
          return $order;
      }
code: private function store($data)
      {
          if (array_key_exists('txn_id', $data)) {
              $order = IpnOrder::firstOrNew(array('txn_id' => $data['txn_id']));
              $order->fill($data);
          } else {
              $order = new IpnOrder($data);
          }
          $order->full_ipn = json_encode(Input::all());
          $order->save();
  
          $this->storeOrderItems($order, $data);
  
          return $order;
      }
code_tokens: private function store ( $ data ) { if ( array_key_exists ( 'txn_id' , $ data ) ) { $ order = IpnOrder :: firstOrNew ( array ( 'txn_id' => $ data [ 'txn_id' ] ) ) ; $ order -> fill ( $ data ) ; } else { $ order = new IpnOrder ( $ data ) ; } $ order -> full_ipn = json_encode ( Input :: all ( ) ) ; $ order -> save ( ) ; $ this -> storeOrderItems ( $ order , $ data ) ; return $ order ; }
docstring: Stores the IPN contents and returns the IpnOrder object.
  
  @param array $data
  @return IpnOrder
docstring_tokens: Stores the IPN contents and returns the IpnOrder object .