public static function main()
 {
     $reference = "REF123";
     try {
         /**
          * #### Credentials #####
          * Replace the parameters below with your credentials
          * You can also get your credentials from a config file. See an example:
          * $credentials = PagSeguroConfig::getApplicationCredentials();
          */
         $credentials = new PagSeguroApplicationCredentials("appId", "appKey");
         $authorization = PagSeguroAuthorizationSearchService::searchByReference($credentials, $reference);
         self::printAuthorization($authorization);
     } catch (PagSeguroServiceException $e) {
         die($e->getMessage());
     }
 }