public function testGiftCardManualCardShouldReward() { $giftService = new HpsGiftCardService(TestServicesConfig::ValidMultiUseConfig()); $response = $giftService->reward(TestGiftCard::validGiftCardNotEncrypted(), 10.0); $this->assertEquals('0', $response->responseCode); }
/** * Creates a reward transaction through the HpsGiftCardService */ public function execute() { parent::execute(); $rewardSvc = new HpsGiftCardService($this->service->servicesConfig()); return $rewardSvc->reward($this->card, $this->amount, $this->currency, $this->gratuity, $this->tax); }