/** * @test * /// Amex authorize should return response code '00'. */ public function testAmexCaptureShouldReturnOk() { $testConfig = new TestServicesConfig(); // Authorize the card. $chargeSvc = new HpsCreditService($testConfig->ValidMultiUseConfig()); $authResponse = $chargeSvc->authorize(50, "usd", TestCreditCard::validAmexCreditCard(), TestCardHolder::ValidCardHolder()); $this->assertEquals("00", $authResponse->responseCode); // Capture the authorization. $captureResponse = $chargeSvc->Capture($authResponse->transactionId); $this->assertEquals("0", $captureResponse->responseCode); }