Ejemplo n.º 1
0
 /**
  * Test invalid currency for current server.
  */
 public function testProcessLinkprocessCreditCardInvalidCurrency()
 {
     // Create and populate the request object.
     $request = array('customerIPAddress' => '', 'invoiceNum' => '00000001', 'creditCardNum' => '4111111111111111', 'creditCardExpiry' => '12/17', 'cvv2' => '000', 'mop' => 'VISA', 'firstName' => 'Test', 'lastName' => 'Account', 'address' => '1234 Any Street', 'city' => 'Schenectady', 'state' => 'NY', 'zipCode' => '12345', 'total' => '5', 'comment' => 'Process CC test.', 'currency' => 'GBP');
     $iats = new ProcessLink(self::$agentCode, self::$password);
     $response = $iats->processCreditCard($request);
     $this->assertEquals('Service cannot be used with this Method of Payment or Currency.', $response);
 }