public function setGatewayUrl($gatewayUrl, $gatewayMode)
    {
        $this->checkGatewayMode($gatewayMode);

        switch ($gatewayMode)
        {
            case self::GATEWAY_MODE_SANDBOX:
            {
                $this->setGatewayUrlSandbox($gatewayUrl);
                break;
            }
            case self::GATEWAY_MODE_PRODUCTION:
            {
                $this->setGatewayUrlProduction($gatewayUrl);
                break;
            }
        }

        return $this;
    }
public function setGatewayUrl($gatewayUrl, $gatewayMode)
    {
        $this->checkGatewayMode($gatewayMode);

        switch ($gatewayMode)
        {
            case self::GATEWAY_MODE_SANDBOX:
            {
                $this->setGatewayUrlSandbox($gatewayUrl);
                break;
            }
            case self::GATEWAY_MODE_PRODUCTION:
            {
                $this->setGatewayUrlProduction($gatewayUrl);
                break;
            }
        }

        return $this;
    }
public function setGatewayUrl ( $ gatewayUrl , $ gatewayMode ) { $ this -> checkGatewayMode ( $ gatewayMode ) ; switch ( $ gatewayMode ) { case self :: GATEWAY_MODE_SANDBOX : { $ this -> setGatewayUrlSandbox ( $ gatewayUrl ) ; break ; } case self :: GATEWAY_MODE_PRODUCTION : { $ this -> setGatewayUrlProduction ( $ gatewayUrl ) ; break ; } } return $ this ; }
Set gateway url for different gateway modes

@param       string      $gatewayUrl         Gateway url
@param       string      $gatewayMode        Mode for gateway url: sandbox, production

@return      self
Set gateway url for different gateway modes