Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * 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;
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 /**
  * 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;
 }