Example #1
0
 /**
  * Test processCreditCardRefundWithTransactionId.
  *
  * @depends testProcessLinkcreateCustomerCodeAndProcessCreditCard
  */
 public function testProcessLinkprocessCreditCardRefundWithTransactionId()
 {
     // Create and populate the request object.
     $request = array('customerIPAddress' => '', 'transactionId' => self::$creditCardTransactionId, 'total' => '-5', 'comment' => 'Credit card refund test.', 'mop' => 'VISA', 'currency' => 'USD');
     $iats = new ProcessLink(self::$agentCode, self::$password);
     $response = $iats->processCreditCardRefundWithTransactionId($request);
     $this->assertStringStartsWith('OK', trim($response['AUTHORIZATIONRESULT']));
 }