/** * @test * Visa charge and reverseTransaction should return response code '00'. */ public function Visa_ChargeAndTransaction_Should_Return_Ok() { $testConfig = new TestServicesConfig(); $chargeSvc = new HpsCreditService($testConfig->ValidMultiUseConfig()); $response = $chargeSvc->charge(50, "usd", TestCreditCard::validVisaCreditCard(), TestCardHolder::ValidCardHolder(), true); $this->assertEquals("0", $response->tokenData->responseCode); $this->assertEquals("00", $response->responseCode); $reverseResponse = $chargeSvc->reverseTransaction($response->transactionId, 50, 'usd'); $this->assertEquals("00", $reverseResponse->responseCode); }