/** * Set return URL * * @param *string * @return this */ public function setReturnUrl($url) { //Argument 1 must be a string Eden_Authorizenet_Error::i()->argument(1, 'string'); $this->_returnUrl = $url; return $this; }
/** * Set cardholder zip * * @param *string zip code * @return this */ public function setZip($zip) { //Argument 1 must be a string Eden_Authorizenet_Error::i()->argument(1, 'string'); $this->_zip = $zip; return $this; }
/** * Set trial amount * * @params *integer|float * @return this */ public function setTrialAmount($amount) { //Argument 1 must be an integer or float Eden_Authorizenet_Error::i()->argument(1, 'int', 'float'); $this->_trialAmount = $amount; return $this; }
protected function _sendRequest($post) { //Argument 1 must be a string Eden_Authorizenet_Error::i()->argument(1, 'string'); //if it is in live mode if ($this->_isLive) { $this->_url = self::LIVE_URL; } //Execute curl $curl = Eden_Curl::i()->setUrl($this->_url)->setPostFields($post)->setHeader(false)->setTimeout(45)->verifyHost(true)->setCaInfo($this->_certificate)->setPost(true); return $curl->getResponse(); }
/** * Set the authorize.net API version * * @param string * @return this */ public function setVersion($version) { //Argument 1 must be as string Eden_Authorizenet_Error::i()->argument(1, 'string'); $this->_version = $version; return $this; }