View Single Post
Old 03-18-2013, 07:51 AM
AMMoyer AMMoyer is offline

Senior Member
Join Date: Nov 2008
Posts: 150

Default Order Declined Message: cart item amounts != order amount

After updating to 4.4.5 from 4.11 I am having problems charging a dropship fee to customers based on membership level. In 4.11 I had added statements in the func.cart.php that added a fee to the shipping calculation if the membership met certain criteria, but this doens't work with 4.4.5 using Xpayments. There is also a new field in the Orders table in the database that contains this dropship amount for each order. Each order record in the table is correct and the fields are all where they need to be.

I all appears to work fine, except that when you get back to the main site from XPayments, I get the following error.

Order declined.
Review your data or contact the store administrator.

Reason: Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)

What two values are they comparing to double check the order total? Is this an issue with Xpayments?
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
EWD Hosting
Reply With Quote