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 05:28 PM
Last Modified: Sep 15, 2011 05:11 PM
1
Rating
|
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
- The On Sale module discounts aren't applied when using Google Checkout or Gift certificates.
Make the following change: payment/auth.php Find this code near line 43: include_once $xcart_dir . "/init.php" ; Immediately after insert this code: // On Sale :: www.alteredcart.com... - 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 generally caused by either a PHP headers error, a cannot redeclare a function error, a PHP file containing whitespace or lines after the final ?>, or an installation error. Go to admin/logs.php and... - 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 internal X-Cart One Page Checkout and you want to allow customers to enter and remove On Sale coupons on this page. If using an On Sale version prior to...
Rate or comment on this article
Rate This Article (Select a star)



Add Comment