public function getGatewayUrl()
    {
        switch ($this->getGatewayMode())
        {
            case self::GATEWAY_MODE_SANDBOX:
            {
                return $this->getGatewayUrlSandbox();
            }
            case self::GATEWAY_MODE_PRODUCTION:
            {
                return $this->getGatewayUrlProduction();
            }
            default:
            {
                throw new RuntimeException('You must set gatewayMode property first');
            }
        }
    }
public function getGatewayUrl()
    {
        switch ($this->getGatewayMode())
        {
            case self::GATEWAY_MODE_SANDBOX:
            {
                return $this->getGatewayUrlSandbox();
            }
            case self::GATEWAY_MODE_PRODUCTION:
            {
                return $this->getGatewayUrlProduction();
            }
            default:
            {
                throw new RuntimeException('You must set gatewayMode property first');
            }
        }
    }
public function getGatewayUrl ( ) { switch ( $ this -> getGatewayMode ( ) ) { case self :: GATEWAY_MODE_SANDBOX : { return $ this -> getGatewayUrlSandbox ( ) ; } case self :: GATEWAY_MODE_PRODUCTION : { return $ this -> getGatewayUrlProduction ( ) ; } default : { throw new RuntimeException ( 'You must set gatewayMode property first' ) ; } } }
Get gateway url for current gateway mode

@return      string      Sandbox gateway url if gateway mode is sandbox,
production gateway url if gateway mode is production
Get gateway url for current gateway mode