richieb:
payment_error=goemerchant&error=The+credit+card+nu mber+starting+with
++was+not+entered+correctly%2C+or+we+do+not+accept +that+
kind+of+card.+Please+try+again+or+use+another+cred it+card.
Going back to the original issue, this was due in part to the server not allowing $HTTP_POST_VARS. After changing the variables to be $_POST or $_REQUEST the issue resolved itself. That is the reason that the credit card number was not being passed correctly to the cc_validation.php file. This really had nothing to do with GoEmerchant's module, but more of a unique issue with the environment the code was being compiled in.
I replaced $HTTP_POST_VARS by $_POST on the goemerchant module a while back, but still getting the same error "The+credit+card+nu mber+starting+with
++was..." from time to time.
So you might be missing some orders without knowing it.
Here is some handy code that will help log payment errors:
Add this at the bottom of includes/modules/pages/checkout_payment/header_php.php
if(isset($_GET['error'])||isset($_GET['error_message'])){
$stringData = date("m/d/Y H:i:s")." - ";
foreach($_GET as $key=>$value){
if($key!='main_page')
$stringData .= $key.": ".$value." | ";
}
$stringData .= " - Customer ID: ".$_SESSION['customer_id']."\n";
$myerrorfile = "internal/path/payment_errors.txt";
$fh = fopen($myerrorfile, 'a') or die("can't open file");
fwrite($fh, $stringData);
fclose($fh);
}
Make sure payment_errors.txt is writeable by the script (777).
Make sure you place a test order after pasting the code.
Anyone is had this error and resolved it for good?
Also, their is coupon code miss-calculation and issues:
This coupon should give 76% off and the order was above $1000. Here is a comment from an order:
"He inputted the code but was not instructed to input a credit card... and the order went through with a price of -498.63 (yes... negative...)"
another issue:
-Sub-total: $149.75
-Free shipping: $0.00
-Discount coupon: couponname: -$113.81
-Total: $9.19
Total should be $35.94 not $9.19
So some customer can check out without entering any CC info with a valid coupon code, and some checkout with the wrong total amount!
This happens on any coupon and not on all orders, some are calculated correctly.
Zencart 1.3.7
GoEmerchant payment module
Free shipper
Any help is greatly appreciated!