Example #1
0
 /**
  * Test processCreditCardBatch.
  *
  * @depends testCredentials
  */
 public function testProcessLinkprocessCreditCardBatch()
 {
     $fileContents = $this->getBatchFile('CreditCardUSUKBatch.txt');
     // Create and populate the request object.
     $request = array('customerIPAddress' => '', 'batchFile' => $fileContents);
     $iats = new ProcessLink(self::$agentCode, self::$password);
     $response = $iats->processCreditCardBatch($request);
     $this->assertEquals('Batch Processing, Please Wait ....', trim($response['AUTHORIZATIONRESULT']));
     self::$creditCardBatchId = $response['BATCHID'];
     sleep(3);
 }