public function testRefundFailure()
 {
     $this->gateway->setPassword('111');
     $response = $this->gateway->refund($this->options)->send();
     $this->assertInstanceOf('\\Omnipay\\Paytrace\\Message\\Check\\Response', $response);
     $this->assertFalse($response->isSuccessful());
     $this->assertSame('998', $response->getCode());
     $this->assertSame('Log in failed.', $response->getMessage());
 }
예제 #2
0
 public static function createSignature()
 {
     return [['options' => ['amount', 'merchantAccountId']], ['creditCard' => ['cardholderName', 'cvv', 'number', 'expirationDate', 'expirationMonth', 'expirationYear', ['billingAddress' => CreditCardGateway::billingAddressSignature()]]]];
 }