public function testGiftCardManualCardShouldReplace() { $giftService = new HpsGiftCardService(TestServicesConfig::ValidMultiUseConfig()); $response = $giftService->replace(TestGiftCard::validGiftCardNotEncrypted(), TestGiftCard::validGiftCardNotEncrypted2()); $this->assertEquals('0', $response->responseCode); }
/** * Creates a replace transaction through the HpsGiftCardService */ public function execute() { parent::execute(); $replaceSvc = new HpsGiftCardService($this->service->servicesConfig()); return $replaceSvc->replace($this->oldCard, $this->newCard); }