Пример #1
0
 public function testGiftCardManualCardShouldActivate()
 {
     $giftService = new HpsGiftCardService(TestServicesConfig::ValidMultiUseConfig());
     $response = $giftService->activate(100.0, 'usd', TestGiftCard::validGiftCardNotEncrypted());
     $this->assertEquals('0', $response->responseCode);
 }
 /**
  * Creates an activate transaction through the HpsGiftCardService
  */
 public function execute()
 {
     parent::execute();
     $activateSvc = new HpsGiftCardService($this->service->servicesConfig());
     return $activateSvc->activate($this->amount, $this->currency, $this->card);
 }