/**
  * Send list of fines to view
  *
  * @return mixed
  */
 public function finesAction()
 {
     // Stop now if the user does not have valid catalog credentials available:
     if (!is_array($patron = $this->catalogLogin())) {
         return $patron;
     }
     $view = $this->createViewIfUnsupported('getMyFines');
     if ($view === false) {
         $view = parent::finesAction();
         $view->profile = $this->getCatalogProfile();
     }
     return $view;
 }
 /**
  * Send list of fines to view
  *
  * @return mixed
  */
 public function finesAction()
 {
     // Stop now if the user does not have valid catalog credentials available:
     if (!is_array($patron = $this->catalogLogin())) {
         return $patron;
     }
     $view = $this->createViewIfUnsupported('getMyFines');
     if ($view === false) {
         $view = parent::finesAction();
         $view->profile = $this->getCatalogProfile();
         if (isset($patron['source'])) {
             $result = $this->handleOnlinePayment($patron, $view->fines, $view);
         }
     }
     return $view;
 }