Thanks dreddor. That most certainly did help. I now am able to show the customer his specific error instead of a generic "unknown error" message.
For any other folks that are using the virtualmerchant.php, the fix is as follows. Note, I've added a few comments to my code, so the line number may be off a bit. Mine is on line 395, and yours will be pretty close to that:
Code:
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false));
} // end if Pre-Confirmation error
Change that to the following:
Code:
// zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false));
global $messageStack;
$messageStack->add_session('checkout_payment', $error . '<!-- ['.$this->code.'] -->', 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
} // end if Pre-Confirmation error
That works, and will cause the error message to be shown correctly.