Knowledgebase
I receive an "Order processing error ! Payment processor can not process your order. Data is invalid" error when submitting a $0 order with the One Page Checkout.
Posted by - NA - on 01 December 2010 10:47 AM
Somewhere around X-Cart version 4.1.8 or later, X-Cart changed the include/payment_method.php file introducing a bug that will not allow a $0 order. When a $0 order is submitted there is an error:

Order processing error !
Payment processor can not process your order. Data is invalid.

This error will occur with the One Page Checkout enabled or disabled. This is core X-Cart file order processing logic needs to be changed/fixed.

To fix:

Open include/payment_method.php:

Find this code near line 71:


#
# Get userinfo and cart products and output an error if empty
#


After insert:


if ($cart['total_cost'] == 0){

if (empty($userinfo) || func_is_cart_empty($cart))
func_header_location($xcart_web_dir.DIR_CUSTOMER."/error_message.php?error_ccprocessor_baddata");

} else {

Find this code near line 88:


$userinfo = func_array_merge($userinfo,$HTTP_POST_VARS);


BEFORE THIS enter:


}



Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: