コード例 #1
0
 public function testGiftCardManualCardShouldAddValue()
 {
     $giftService = new HpsGiftCardService(TestServicesConfig::ValidMultiUseConfig());
     $response = $giftService->addValue(10.0, 'usd', TestGiftCard::validGiftCardNotEncrypted());
     $this->assertEquals('0', $response->responseCode);
 }
コード例 #2
0
 /**
  * Creates an addValue transaction through the HpsGiftCardService
  */
 public function execute()
 {
     parent::execute();
     $addValueSvc = new HpsGiftCardService($this->service->servicesConfig());
     return $addValueSvc->addValue($this->amount, $this->currency, $this->card);
 }