public function getEndpoint($endpoint, $account = null)
    {
        $isSandbox = (new ConfigurationRepository)->getAccountKey('sandbox', true, $account);

        if ($isSandbox) {
            return $this->resolveUrl(MPESA_SANDBOX, $endpoint);
        }

        return $this->resolveUrl(MPESA_PRODUCTION, $endpoint);
    }
public function getEndpoint($endpoint, $account = null)
    {
        $isSandbox = (new ConfigurationRepository)->getAccountKey('sandbox', true, $account);

        if ($isSandbox) {
            return $this->resolveUrl(MPESA_SANDBOX, $endpoint);
        }

        return $this->resolveUrl(MPESA_PRODUCTION, $endpoint);
    }
public function getEndpoint ( $ endpoint , $ account = null ) { $ isSandbox = ( new ConfigurationRepository ) -> getAccountKey ( 'sandbox' , true , $ account ) ; if ( $ isSandbox ) { return $ this -> resolveUrl ( MPESA_SANDBOX , $ endpoint ) ; } return $ this -> resolveUrl ( MPESA_PRODUCTION , $ endpoint ) ; }
Get the endpoint relative to the current

@param string $endpoint
@param string $account

@return string
Get the endpoint relative to the current