X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   Items per cart limit error in Authorize.net (https://forum.x-cart.com/showthread.php?t=66022)

tagteam 10-02-2012 09:13 AM

Items per cart limit error in Authorize.net
 
I am having orders fail because there are more than 30 line items. I have called authorize.net and they say there is no limit on the number of order items. Is there some setting in x-payments that is causing this?
Thanks

joss 10-03-2012 08:17 AM

Re: limiting to 30 line items
 
There is a typo in the script, X-Payments counts items up to 31, instead of 30 and thus the error occurs.

To fix it, you should modify <xp-dir>/lib/XPay/Module/AuthorizeNet.php file:

- find this line:

--------------------------------------------------------
while ($lineItemCount++ < 30 && $items->getNext()) {
--------------------------------------------------------


- and change 30 to 29, so that it's:


--------------------------------------------------------
while ($lineItemCount++ < 29 && $items->getNext()) {
--------------------------------------------------------

tagteam 10-03-2012 11:41 AM

Re: limiting to 30 line items
 
My version 1.0.5 already has that change made. it seems to be more of an issue with the API from Authorize.net. I need some way to batch the lines or something if it goes over 30. Maybe if it detects the total is over 30 it just sends a single line with the total to Authorize.net instead of every line.

chrisredco 02-04-2013 09:04 AM

Items per cart limit error in Authorize.net
 
I am testing a site now with Authorize.net AIM and X-Payments.

Tried putting through an order with about 44 separate line items in the cart (typical for the items I sell) and I got a transaction error from Authorize.net saying the number of line items in an order can't exceed 30.

I've used Authorize.net for years on another platform and never had this issue. After looking into it, it seems my current software doesn't send line item info to Authorize.net, but X-Cart does.

I need to know either how to do the following to correct this:

Turn this off in X-Cart so numbers of line items in an order is not sent to Authorize.net (what I prefer and how my current site works perfectly now).

or

Increase the number of line items Authorize.net will accept per transaction.

Thanks,
Chris Stubbs
Redco Audio

cflsystems 02-04-2013 07:23 PM

Re: Items per cart limit error in Authorize.net
 
Per AIM Developer Guide

Quote:

The merchant can submit up to 30 distinct line items containing itemized order information per transaction. All field separators are required whether there the field has a value a value. In the example below, the Item Description field after golf balls<|> has no value, yet the bracketed pipe remains

http://www.authorize.net/support/AIM_guide.pdf - page 29

vtandon 01-16-2014 10:44 PM

Re: Items per cart limit error in Authorize.net
 
was this issue ever resolved?
I have the same issue when people order more than 30 items.

tartaglia 01-21-2014 09:52 AM

Re: Items per cart limit error in Authorize.net
 
We have had this same error. It is definitely a customer service killer. Luckily we don't run across the situation much. But PLEASE tell me that QT is working on a fix and will let us know (publically) when it is ready.

ambal 01-22-2014 01:12 AM

Re: Items per cart limit error in Authorize.net
 
Hi Everyone,

I found an old thread about exact the same issue with Auth.net module in an old X-Payments version. You must be using v1.0.5 - if so, upgrade your X-Payments to v1.0.6 or v2.x.

Users of downloadable X-Payments can find latest versions in their File Area (for accessing v2.x file an upgrade fee is required - see why to upgrade to v2 at http://www.x-cart.com/x-payments-feature-tour.html ).

Users of hosted X-Payments - send us a ticket for a free upgrade to the latest version.


All times are GMT -8. The time now is 05:02 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.