public function testPreauthorizationFailure() { $this->setMockHttpResponse('PreauthorizationFailure.txt'); $response = $this->gateway->preauthorization($this->paymentOptions)->send(); $this->assertFalse($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertSame('Authorization Declined.', $response->getMessage()); }
public function testSupportsPreauthorization() { $this->assertInstanceOf('Omnipay\\Common\\Message\\RequestInterface', $this->gateway->preauthorization()); }