News:

Looking for documentation? Take a look on our wiki

Main Menu

Confirmed or declined page

Started by tomshirvo, January 03, 2012, 03:10:31 AM

Previous topic - Next topic

tomshirvo

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

Stephen Roberts

For the first parameter of processConfirmedOrderPaymentResponse(), return false on failed transactions.
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com