Thanks for the reply.
at the moment my end view looks like this:
<?php
defined('_JEXEC') or die('Restricted access');
?>
<?php
if(empty($this->html)){
echo JText::_('THANK_YOU_FOR_PURCHASE');
}else{
echo $this->html;
}
$this->nextButton = false;
so to get it redirect for all methods (my assumption is that all payment methods end up here), I do the following?
<?php
defined('_JEXEC') or die('Restricted access');
?>
<?php
if(empty($this->html)){
$app = JFactory::getApplication();
$link = 'URL';
$app->redirect($link);
echo JText::_('THANK_YOU_FOR_PURCHASE');
}else{
echo $this->html;
}
$this->nextButton = false;
Will this redirect and then show the thank you message? Or should I just redirect after the message is shown? There might need to be a delay of a couple of seconds so that people get to see the thank you message before they are redirected.
thanks