Title: Line Items Gateway Error
Last modified: September 16, 2019

---

# Line Items Gateway Error

 *  Resolved [divyauser](https://wordpress.org/support/users/divyauser/)
 * (@divyauser)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/line-items-gateway-error/)
 * Hi Support,
 * When I am placing the order I am getting a Gateway error: The number of line 
   Items submitted is not allowed. A maximum of 30 line Items can be submitted on
   the checkout page.
 * Our website also sell wholesale products. So many customers are purchasing products
   more then 30 in quantity.
 * I need a solution for this.
    Is there any way I can increase limit of line Items
   so that authorize.net does not throw error and payment get processed?
 * I want this fix asap. Please help. Our various customers are facing this issue.
 * Waiting for your swift reply.
 * Thanks & Regards
    Divya

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [divyauser](https://wordpress.org/support/users/divyauser/)
 * (@divyauser)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-11939438)
 * Hi,
 * I am waiting for your Replay.
    It is an urgent issue related to sales on my website.
 * Thanks & Regards
    Divya
 *  Plugin Author [mohsin.id](https://wordpress.org/support/users/mohsinoffline/)
 * (@mohsinoffline)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-11939574)
 * Hi there,
 * The Authorize.Net API cannot take more than 30 items, so we will need to cap 
   it at a maximum 30 so the transaction goes through fine. Please send over temporary
   WP admin access via the contact form in the plugin and we will look into it on
   your site.
 *  Plugin Author [mohsin.id](https://wordpress.org/support/users/mohsinoffline/)
 * (@mohsinoffline)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-11943914)
 * The error should be fixed in the latest version
 *  Thread Starter [divyauser](https://wordpress.org/support/users/divyauser/)
 * (@divyauser)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-12121097)
 * Hi,
 * I have seen the change log.
    5.1.4 Restricted the line items to be sent in the
   gateway request to 30
 * It is written that you have done restriction.
    I have asked you to remove the
   restriction so that customers can purchase more than 30 line items in an Order.
   The line is the change log seems that you have applied restriction. Can you please
   make it clear?
 * Waiting for your swift reply.
 * Thanks & Regards
    Divya
 *  Plugin Author [mohsin.id](https://wordpress.org/support/users/mohsinoffline/)
 * (@mohsinoffline)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-12121167)
 * Authorize.Net only accepts 30 line items in a request, which is why you saw an
   error earlier with orders of more than 30 items. Now the plugin has been fixed
   to only include the first 30 line items in the request, with no restriction on
   WooCommerce end so the transaction will still go through fine for orders with
   more than 30 items.
 *  Thread Starter [divyauser](https://wordpress.org/support/users/divyauser/)
 * (@divyauser)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-12121407)
 * Thanks for the fix 🙂
 * Now Customer will able to add more than 30 line items in an Order. Correct?
 * Thanks & Regards
    Divya
    -  This reply was modified 6 years, 6 months ago by [divyauser](https://wordpress.org/support/users/divyauser/).
    -  This reply was modified 6 years, 6 months ago by [divyauser](https://wordpress.org/support/users/divyauser/).
 *  Plugin Author [mohsin.id](https://wordpress.org/support/users/mohsinoffline/)
 * (@mohsinoffline)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-12121483)
 * Correct 😊
 *  Thread Starter [divyauser](https://wordpress.org/support/users/divyauser/)
 * (@divyauser)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-12121779)
 * Ok, That is Fine.
    I placed an Order with 37 Line items. It works well at WooCoomerce
   end. But when I received Authorize.net Transaction auto-receipt, only 30 line
   items are visible there. No doubt, Total amount is properly deducted and visible
   in Receipt and in WooCommerce Email, but all line items are not visible in Receipt
   generated by Authorize.net. These may create confusion for customers. What can
   be done here?
 * Thanks & Regards
    Divya
 *  Plugin Author [mohsin.id](https://wordpress.org/support/users/mohsinoffline/)
 * (@mohsinoffline)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-12121788)
 * Nothing really that can be done as it is a limitation within the Authorize.Net
   API.
 *  Thread Starter [divyauser](https://wordpress.org/support/users/divyauser/)
 * (@divyauser)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-12121795)
 * OK, Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Line Items Gateway Error’ is closed to new replies.

 * ![](https://ps.w.org/woo-authorize-net-gateway-aim/assets/icon-128x128.png?rev
   =2750000)
 * [Secure Gateway for Authorize.net and WooCommerce by Pledged Plugins](https://wordpress.org/plugins/woo-authorize-net-gateway-aim/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-authorize-net-gateway-aim/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-authorize-net-gateway-aim/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-authorize-net-gateway-aim/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-authorize-net-gateway-aim/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-authorize-net-gateway-aim/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [divyauser](https://wordpress.org/support/users/divyauser/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/line-items-gateway-error/#post-12121795)
 * Status: resolved