public function testGiftCardManualCardShouldReverseUsingGiftCard()
 {
     $giftService = new HpsGiftCardService(TestServicesConfig::ValidMultiUseConfig());
     $response = $giftService->sale(TestGiftCard::validGiftCardNotEncrypted(), 10.0);
     $this->assertEquals('0', $response->responseCode);
     $reverseResponse = $giftService->reverse(TestGiftCard::validGiftCardNotEncrypted(), 10.0);
     $this->assertEquals('0', $reverseResponse->responseCode);
 }
 protected function sva2()
 {
     return TestGiftCard::validGiftCardNotEncrypted2();
 }
 /**
  * @expectedException        HpsException
  * @expectedExceptionMessage The pin is invalid
  * @expectedExceptionCode    HpsExceptionCodes::INVALID_PIN
  */
 public function testGiftCardManualCardWithInvalidPin()
 {
     $giftService = new HpsGiftCardService(TestServicesCOnfig::validMultiUseConfig());
     $response = $giftService->sale(TestGiftCard::validGiftCardNotEncrypted(), 3.05);
 }
 public function testVoid()
 {
     $response = $this->service->sale()->withCard(TestGiftCard::validGiftCardNotEncrypted())->withAmount(10.0)->execute();
     $this->assertEquals('0', $response->responseCode);
     $voidResponse = $this->service->void()->withTransactionId($response->transactionId)->execute();
     $this->assertEquals('0', $voidResponse->responseCode);
 }