public function trnRequest($token, $redirect = true)
    {
        
        if ($redirect) {
            header("Location:".$this->hostLive."trnRequest/".$token);
            
            return "";
        } else {
            return $this->hostLive."trnRequest/".$token;
        }
        
    }
public function trnRequest($token, $redirect = true)
    {
        
        if ($redirect) {
            header("Location:".$this->hostLive."trnRequest/".$token);
            
            return "";
        } else {
            return $this->hostLive."trnRequest/".$token;
        }
        
    }
public function trnRequest ( $ token , $ redirect = true ) { if ( $ redirect ) { header ( "Location:" . $ this -> hostLive . "trnRequest/" . $ token ) ; return "" ; } else { return $ this -> hostLive . "trnRequest/" . $ token ; } }
Redirects or returns URL to a P24 payment screen

@param string $token    Token
@param bool   $redirect If set to true redirects to P24 payment screen. If set to false function returns URL to redirect to P24 payment screen

@return string URL to P24 payment screen
Redirects or returns URL to a P24 payment screen