public function execute()
    {
        parent::execute();

        $activateSvc = new HpsGiftCardService($this->service->servicesConfig());
        if ($this->token != null && ($this->token instanceof HpsTokenData)) {
            if ($this->card == null) {
                $this->card = new HpsGiftCard();
            }
            $this->card->tokenValue = $this->token->tokenValue;
        }
        return $activateSvc->activate(
            $this->amount,
            $this->currency,
            $this->card
        );
    }
public function execute()
    {
        parent::execute();

        $activateSvc = new HpsGiftCardService($this->service->servicesConfig());
        if ($this->token != null && ($this->token instanceof HpsTokenData)) {
            if ($this->card == null) {
                $this->card = new HpsGiftCard();
            }
            $this->card->tokenValue = $this->token->tokenValue;
        }
        return $activateSvc->activate(
            $this->amount,
            $this->currency,
            $this->card
        );
    }
public function execute ( ) { parent :: execute ( ) ; $ activateSvc = new HpsGiftCardService ( $ this -> service -> servicesConfig ( ) ) ; if ( $ this -> token != null && ( $ this -> token instanceof HpsTokenData ) ) { if ( $ this -> card == null ) { $ this -> card = new HpsGiftCard ( ) ; } $ this -> card -> tokenValue = $ this -> token -> tokenValue ; } return $ activateSvc -> activate ( $ this -> amount , $ this -> currency , $ this -> card ) ; }
Creates an activate transaction through the HpsGiftCardService
Creates an activate transaction through the HpsGiftCardService