Ejemplo n.º 1
0
 public static function searchByInterval()
 {
     // Substitute the code below
     $days = 20;
     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::searchByInterval($credentials, $days);
         self::printResult($result);
     } catch (PagSeguroServiceException $e) {
         die($e->getMessage());
     }
 }