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