Ejemplo n.º 1
0
 public static function searchByDate()
 {
     // Substitute the information below
     $page = 1;
     $maxPageResults = 1000;
     $initialDate = "2015-03-10T00:00:00";
     $finalDate = "2015-04-06T00:00:00";
     try {
         /**
          * @todo
          * #### Credentials #####
          * Replace the parameters below with your credentials (e-mail and token)
          * You can also get your credentials from a config file. See an example:
          * $credentials = PagSeguroConfig::getAccountCredentials();
          */
         $credentials = PagSeguroConfig::getAccountCredentials();
         $result = PagSeguroPreApprovalSearchService::searchByDate($credentials, $page, $maxPageResults, $initialDate, $finalDate);
         self::printResult($result, $initialDate, $finalDate);
     } catch (PagSeguroServiceException $e) {
         die($e->getMessage());
     }
 }