VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: tomshirvo on January 03, 2012, 03:10:31 AM

Title: Confirmed or declined page
Post by: tomshirvo on January 03, 2012, 03:10:31 AM
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
Title: Re: Confirmed or declined page
Post by: Stephen Roberts on January 03, 2012, 16:17:22 PM
For the first parameter of processConfirmedOrderPaymentResponse(), return false on failed transactions.