Esempio n. 1
0
 public function testGetTransactionList()
 {
     $request = new AuthorizeNetTD();
     $response = $request->getSettledBatchList();
     $this->assertTrue($response->isOk());
     $batches = $response->xpath("batchList/batch");
     $batch_id = (string) $batches[0]->batchId;
     $response = $request->getTransactionList($batch_id);
     $this->assertTrue($response->isOk());
 }
 public function testGetBatchStatistics()
 {
     $request = new AuthorizeNetTD();
     $response = $request->getSettledBatchList();
     $this->assertTrue($response->isOk());
     $this->assertTrue($response->xml->batchList->count() >= 1);
     $batchId = $response->xml->batchList->batch[0]->batchId;
     $request = new AuthorizeNetTD();
     $response = $request->getBatchStatistics($batchId);
     $this->assertTrue($response->isOk());
 }
 public function testGetSettledBatchList()
 {
     $request = new AuthorizeNetTD();
     $response = $request->getSettledBatchList();
     $this->assertTrue($response->isOk());
 }
 public function testGetBatchStatistics()
 {
     $this->markTestSkipped('Ignoring for Travis. Will fix after release.');
     //TODO
     $request = new AuthorizeNetTD();
     $response = $request->getSettledBatchList();
     $this->assertTrue($response->isOk());
     $this->assertTrue($response->xml->batchList->count() >= 1);
     $batchId = $response->xml->batchList->batch[0]->batchId;
     $request = new AuthorizeNetTD();
     $response = $request->getBatchStatistics($batchId);
     $this->assertTrue($response->isOk());
 }