Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Items per cart limit error in Authorize.net

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 10-02-2012, 09:13 AM
 
tagteam tagteam is offline
 

eXpert
  
Join Date: Jan 2012
Posts: 227
 

Default 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
__________________
Version 4.7.8
Reply With Quote
  #2  
Old 10-03-2012, 08:17 AM
 
joss joss is offline
 

X-Cart team
  
Join Date: Feb 2009
Posts: 60
 

Default 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()) {
--------------------------------------------------------
__________________
joss@x-cart.com
Reply With Quote
  #3  
Old 10-03-2012, 11:41 AM
 
tagteam tagteam is offline
 

eXpert
  
Join Date: Jan 2012
Posts: 227
 

Default 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.
__________________
Version 4.7.8
Reply With Quote
  #4  
Old 02-04-2013, 09:04 AM
 
chrisredco chrisredco is offline
 

Advanced Member
  
Join Date: Jul 2012
Posts: 49
 

Default 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
__________________
4.5.3
X-Payments
Store Manager
Reply With Quote
  #5  
Old 02-04-2013, 07:23 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
tartaglia (02-05-2013)
  #6  
Old 01-16-2014, 10:44 PM
 
vtandon vtandon is offline
 

Member
  
Join Date: Jul 2003
Posts: 25
 

Default 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.
Reply With Quote
  #7  
Old 01-21-2014, 09:52 AM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default 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.
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
  #8  
Old 01-22-2014, 01:12 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,119
 

Default 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.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager

Last edited by ambal : 01-22-2014 at 11:36 PM.
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020