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:07 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:


}



--------------------------------------------------------------------------------

Related Articles

•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.)"
•How do I add the On Sale discounts to the Related or Upselling products on my main product display page?
•The On Sale module discounts aren't applied when using Google Checkout or Gift certificates.
•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?

--------------------------------------------------------------------------------

Still Have Questions? If you are unable to find a solution in the knowledgebase please open a support ticket for a personal response from alteredCart support.


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