/** * @test /// MasterCard refund test. */ public function MasterCard_ShouldRefund_Ok() { $testConfig = new TestServicesConfig(); $chargeSvc = new HpsCreditService($testConfig->ValidMultiUseConfig()); $chargeResponse = $chargeSvc->charge(25.0, "usd", TestCreditCard::validMasterCreditCard(), TestCardHolder::certCardHolderShortZipNoStreet()); $refundResponse = $chargeSvc->refundTransaction(25.0, "usd", $chargeResponse->transactionId); $this->assertEquals($refundResponse->responseCode, "0"); }