public function testGiftCardManualCardShouldAddValue() { $giftService = new HpsGiftCardService(TestServicesConfig::ValidMultiUseConfig()); $response = $giftService->addValue(10.0, 'usd', TestGiftCard::validGiftCardNotEncrypted()); $this->assertEquals('0', $response->responseCode); }
/** * Creates an addValue transaction through the HpsGiftCardService */ public function execute() { parent::execute(); $addValueSvc = new HpsGiftCardService($this->service->servicesConfig()); return $addValueSvc->addValue($this->amount, $this->currency, $this->card); }