public function addParam($param, $value) {

    if (!$this->requestMethod->hasParam($param)) {
      throw new GiroCheckout_SDK_Exception_helper('Failure: param "' . $param . '" not valid or misspelled. Please check API Params List.');
    }

    if ($value instanceof GiroCheckout_SDK_Request_Cart) {
      $this->params[$param] = $value->getAllItems();
    }
    else {
      $this->params[$param] = $value;
    }

    return $this;
  }
public function addParam($param, $value) {

    if (!$this->requestMethod->hasParam($param)) {
      throw new GiroCheckout_SDK_Exception_helper('Failure: param "' . $param . '" not valid or misspelled. Please check API Params List.');
    }

    if ($value instanceof GiroCheckout_SDK_Request_Cart) {
      $this->params[$param] = $value->getAllItems();
    }
    else {
      $this->params[$param] = $value;
    }

    return $this;
  }
public function addParam ( $ param , $ value ) { if ( ! $ this -> requestMethod -> hasParam ( $ param ) ) { throw new GiroCheckout_SDK_Exception_helper ( 'Failure: param "' . $ param . '" not valid or misspelled. Please check API Params List.' ) ; } if ( $ value instanceof GiroCheckout_SDK_Request_Cart ) { $ this -> params [ $ param ] = $ value -> getAllItems ( ) ; } else { $ this -> params [ $ param ] = $ value ; } return $ this ; }
Adds a key value pair to the params variable. Used to fill the request with data.

@param String $param key
@param String $value value
@return GiroCheckout_SDK_Request $this own instance
@throws GiroCheckout_SDK_Exception_helper
Adds a key value pair to the params variable . Used to fill the request with data .