/**
  * Notification Action
  */
 public function notification()
 {
     \App::make('pagseguro');
     // Register PagSeguro
     $platform = Config::getPlatform();
     $params = array_merge(['notificationCode' => null, 'notificationType' => null], $platform->getUrlParameters());
     $code = $params['notificationCode'];
     $type = $params['notificationType'];
     if (empty($code) || empty($type)) {
         $platform->abort();
         return;
     }
     $credential = $this->getCredentialsTo($code);
     $notification = new Notification($code, $type);
     $info = $notification->check($credential);
     $this->notify($info);
 }