IronTank:
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:```
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:```
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));
}
}
}
IronTank:
However, when I go to my bank account the sums were successfully deducted.
Sorry, I can't help you with that.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.