Пример #1
0
 public function testGiftCardManualCardShouldDeactivate()
 {
     $giftService = new HpsGiftCardService(TestServicesConfig::ValidMultiUseConfig());
     $response = $giftService->deactivate(TestGiftCard::validGiftCardNotEncrypted());
     $this->assertEquals('0', $response->responseCode);
 }
 /**
  * Creates a deactivate transaction through the HpsGiftCardService
  */
 public function execute()
 {
     parent::execute();
     $deactivateSvc = new HpsGiftCardService($this->service->servicesConfig());
     return $deactivateSvc->deactivate($this->card);
 }