コード例 #1
0
 public function testGiftCardManualCardShouldReplace()
 {
     $giftService = new HpsGiftCardService(TestServicesConfig::ValidMultiUseConfig());
     $response = $giftService->replace(TestGiftCard::validGiftCardNotEncrypted(), TestGiftCard::validGiftCardNotEncrypted2());
     $this->assertEquals('0', $response->responseCode);
 }
コード例 #2
0
 /**
  * Creates a replace transaction through the HpsGiftCardService
  */
 public function execute()
 {
     parent::execute();
     $replaceSvc = new HpsGiftCardService($this->service->servicesConfig());
     return $replaceSvc->replace($this->oldCard, $this->newCard);
 }