Neither attemp worked... when I try and modify the file that has the DECLINED message in any way, it produces a blank page during checkout.:
****FROM THE: languages/english/modules/payment/
<?php
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_TITLE', 'Gateway Services (Credit Card)');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_PUBLIC_TITLE', 'Credit Card');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_DESCRIPTION', '<strong>Gateway Services Credit Card Module</strong><br><br>Credit Card Test Info:<br>CC Number: 4111111111111111<br>CC Expiry: Any valid expiration');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_CREDIT_CARD_OWNER', 'Credit Card Owner:');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_CREDIT_CARD_NUMBER', 'Credit Card Number:');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_CREDIT_CARD_EXPIRES', 'Credit Card Expiry Date:');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_JS_CC_OWNER', '* The owner\'s name of the credit card must be at least ' . CC_OWNER_MIN_LENGTH . ' characters.\n');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_JS_CC_NUMBER', '* The credit card number must be at least ' . CC_NUMBER_MIN_LENGTH . ' characters.\n');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_JS_CSC', '* The credit card security code must be 3 characters (4 for American Express).\n');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_ERROR_CSC', 'The credit card security code must be 3 characters (4 for American Express).');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_ERROR_MESSAGE', 'There has been an error processing your credit card. Please try again.');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_DECLINED_MESSAGE', 'Your credit card was declined. Please try another card or contact your bank for more info.');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_ERROR', 'Credit Card Error!');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_CARD_SECURITY_CODE', 'Credit Card Security Code:');
define('MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_CSC_DESCRIPTION', '(located on the back of the credit card)');
?>
---This is the entire page for the .php document. The weird thing is that if it is a wrong # entered for the credit card an error message is in the middle of the page with red background? The error message at the top only comes up when the "...credit card has been declined....."
****here is some .php from where the error message is generated in the : /modules/payment/
function before_process() {
if ($_GET['response'] == '1') return;
if ($_GET['response'] == '2') {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_DECLINED_MESSAGE), 'SSL', true, false));
}
// Code 3 is an error - but anything else is an error too (IMHO)
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_ERROR_MESSAGE), 'SSL', true, false));
}
function after_process() {
return false;
}
function get_error() {
$error = array('title' => MODULE_PAYMENT_GATEWAY_SERVICES_CC_TEXT_ERROR,
'error' => stripslashes(urldecode($_GET['error'])));
return $error;
}
function check() {
global $db;
if (!isset($this->_check)) {
$check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_GATEWAY_SERVICES_CC_STATUS'");
$this->_check = $check_query->RecordCount();
}
return $this->_check;
}