
Originally Posted by
IronTank
Code:
http://www.mystore.com/index.php?main_page=checkout_payment&error_message=Your+authorization+was+declined.++Please+try+another+card.+--+005%3A+Authorization+declined&zenid=it9v1skafsiggrtcmd5h8ss1k6
The page is still BLANK, white.
The blank page at that point likely a security catch trapping the very long parameters on the URL.
That's an older way of coding inherited from osCommerce days.
The newer more efficient approach is to use the $messageStack instead of $_GET.
If you look in the module file (assuming you're using the current one from the Free Addons area), around line 494 you'll see this section of code:
Code:
else if($FinalStatus == 'badcard') {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode('Your authorization was declined. Please try another card.') . urlencode(" -- $MErrMsg"), 'SSL', true, false));
}
else if($FinalStatus == 'fraud') {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode('Your transaction was rejected. Please contact the merchant for ordering assistance.') . urlencode(" -- $MErrMsg"), 'SSL', true, false));
}
else if($FinalStatus == 'problem') {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode('There was an error processing your transaction. Please contact the merchant for ordering assistance.') . urlencode(" -- $MErrMsg"), 'SSL', true, false));
}
else {
if ($response[0] == '') {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode("There was an unspecified error processing your transaction.<br>Received empty cURL response - check cURL connectivity to PnP server.") . urlencode(" -- $MErrMsg"), 'SSL', true, false));
}
else {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode("There was an unspecified error processing your transaction.") . urlencode(" -- $MErrMsg"), 'SSL', true, false));
}
}
}
... which you'll need to replace with this:
Code:
else if($FinalStatus == 'badcard') {
$error_message = 'Your authorization was declined. Please try another card. -- ' . $MErrMsg;
$messageStack->add_session('checkout_payment', $error_message . '<!-- ['.$this->code.'] -->', 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
}
else if($FinalStatus == 'fraud') {
$error_message = 'Your transaction was rejected. Please contact the merchant for ordering assistance. -- ' . $MErrMsg;
$messageStack->add_session('checkout_payment', $error_message . '<!-- ['.$this->code.'] -->', 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
}
else if($FinalStatus == 'problem') {
$error_message = 'There was an error processing your transaction. Please contact the merchant for ordering assistance. -- ' . $MErrMsg;
$messageStack->add_session('checkout_payment', $error_message . '<!-- ['.$this->code.'] -->', 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
}
else {
if ($response[0] == '') {
$error_message = 'There was an unspecified error processing your transaction.<br>Received empty cURL response - check cURL connectivity to PnP server. -- ' . $MErrMsg;
$messageStack->add_session('checkout_payment', $error_message . '<!-- ['.$this->code.'] -->', 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
}
else {
$error_message = 'There was an unspecified error processing your transaction. -- ' . $MErrMsg;
$messageStack->add_session('checkout_payment', $error_message . '<!-- ['.$this->code.'] -->', 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
}
}
}

Originally Posted by
IronTank
However, when I go to my bank account the sums were successfully deducted.
Sorry, I can't help you with that.
Bookmarks