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.
Created: Mar 23, 2010 5:28 PM
Last Modified: Sep 29, 2012 4:11 PM
2
Ratings
|
0
Comments
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:
After insert:
Find this code near line 88:
BEFORE THIS enter:
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:
}Still Have Questions?
If you are unable to find a solution in the knowledgebase please open a support ticket for a personal response from the support desk.
Related Articles
-
I've contacted X-Cart tech support about a problem and they say the problem is in the One Page Checkout. How can I tell what is an X-Cart issue vs. a One Page Checkout issue?
To determine if the X-Cart code is the cause, or if the OnePage Checkout is the cause, you can switch back and forth between the default multi-page checkout and the One Page checkout for your session only (this... -
I'm receiving this error on the checkout page: "There was an error loading the shipping options, please try again. (You may need to refresh your browser.)"
This error is usually caused by one or more of the following errors: PHP headers error Cannot redeclare a function error. PHP file containing whitespace or lines after the final ?>... -
Special Instructions when On Sale coupons and the 4.4.x X-Cart internal One Page Checkout
The following edits are required if you are using the stock X-Cart One Page Checkout and you want to allow customers to enter and remove On Sale coupons on this page....
Rate or comment on this article
Rate This Article (Select a star)



Add Comment