When a payment is made it will go to a page that shows up "thank you for your order"
How do I make it go to a page when it is declined and show up an error.
if (!$_returnValue) {
JError::raiseWarning(500, $_errorMsg);
//JError::raiseWarning(500, $txnResponseCode);
return $this->processConfirmedOrderPaymentResponse(1, $cart, $order, $html1, $method->order_status);
//return $_returnValue;
}
I have this and it will show up the error but on the page that is for the confirmed order. Is there a way to make it go back to the cart and show up the error there
For the first parameter of processConfirmedOrderPaymentResponse(), return false on failed transactions.