DrByte it looks like the modules were written by "The Zen-cart developers." I've been looking through the module we mail out all I can see thus far (I'm going to continue looking through) is the following two functions. The key part is:
$_POST["Auth"] === "Declined" && (strlen($_POST["Auth"]) > 3
Both go to: zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, . . .
I'll be searching to find what the above key phrases mean later, meanwhile below is the two functions:
function before_process() {
global $_POST;
if(($_POST["Auth"] == 0 && strlen($_POST["Auth"]) == 1) && ($_POST["TransID"] == 0 && strlen($_POST["TransID"]) == 1) && ($_POST["Notes"] != NULL && strlen($_POST["Notes"]) > 0)) {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_TRANSACTION_CENTRAL_TEXT_ERROR_MESSAGE), 'SSL', true, false));
}elseif ($_POST["Auth"] === "Declined" && (strlen($_POST["Auth"]) > 3) && strlen($_POST["TransID"]) > 3 && ($_POST["Notes"] != NULL && strlen($_POST["Notes"]) > 0)) {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_TRANSACTION_CENTRAL_TEXT_ERROR_MESSAGE), 'SSL', true, false));
}else{
/* Do Nothing because the transaction was approved... */
}
return $before_process;
}## End Function (before_process)
function after_process() {
if(($_POST["Auth"] == 0 && strlen($_POST["Auth"]) == 1) || ($_POST["TransID"] == 0 && strlen($_POST["TransID"]) == 1) && ($_POST["Notes"] != NULL && strlen($_POST["Notes"]) > 0)) {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_TRANSACTION_CENTRAL_TEXT_ERROR_MESSAGE), 'SSL', true, false));
}elseif ($_POST["Auth"] === "Declined" && (strlen($_POST["Auth"]) > 3) && strlen($_POST["TransID"]) > 3 && ($_POST["Notes"] != NULL && strlen($_POST["Notes"]) > 0)) {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_TRANSACTION_CENTRAL_TEXT_ERROR_MESSAGE), 'SSL', true, false));
}else{
/* Do Nothing because the transaction was approved... */
}
return $after_process;
}
thanks!