Exemple #1
0
 /**
  * Test getCreditCardPaymentBoxJournalCSV.
  */
 public function testReportLinkgetCreditCardPaymentBoxJournalCSV()
 {
     $iats = new ReportLink(self::$agentCode, self::$password);
     $fromTime = mktime(0, 0, 0, date('n'), date('j'), date('Y'));
     $toTime = mktime(23, 59, 59, date('n'), date('j'), date('Y'));
     $request = array('fromDate' => $iats->getFormattedDate($fromTime), 'toDate' => $iats->getFormattedDate($toTime), 'customerIPAddress' => '');
     $response = $iats->getCreditCardPaymentBoxJournalCSV($request);
     $this->assertStringStartsWith('Transaction ID,Invoice Number,Date Time', $response);
 }