[Skip to main content](#vessel-content)

#   Authorize API error 271 Maximum Items

##

- **[crbender](/forum/user/31752-crbender "View crbender's Profile")**
- [![crbender's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31752-crbender "View crbender's Profile") Topic Author
- [ Offline](/forum/user/31752-crbender)

Less More

- Posts: 1
- Thank you received: 0
-
-

12 years 3 weeks ago [\#174569](#174569) by [crbender](/forum/user/31752-crbender "View crbender's Profile")  *[Authorize API error 271 Maximum Items](/forum/29-payment-methods/872140-authorize-api-error-271-maximum-items#174569 "-- HikaShop version -- : business v 2.3.3 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Error 271  Hey all, We routinely have customers who wish to order more than 30 line items at once. How do we disable the Maximum Item check and only send a dollar amount to Authorize.net?")* was created by *[crbender](/forum/user/31752-crbender "View crbender's Profile")*

-- HikaShop version -- : business v 2.3.3
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4
-- Error-message(debug-mod must be tuned on) -- : Error 271

Hey all,
We routinely have customers who wish to order more than 30 line items at once. How do we disable the Maximum Item check and only send a dollar amount to Authorize.net?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzIxNDAtYXV0aG9yaXplLWFwaS1lcnJvci0yNzEtbWF4aW11bS1pdGVtcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

12 years 3 weeks ago [\#174572](#174572) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Authorize API error 271 Maximum Items](/forum/29-payment-methods/872140-authorize-api-error-271-maximum-items#174572 "-- HikaShop version -- : business v 2.3.3 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Error 271  Hey all, We routinely have customers who wish to order more than 30 line items at once. How do we disable the Maximum Item check and only send a dollar amount to Authorize.net?")*

Hi,

Add the code: Code:

if(count($vars["x_line_item"])&gt;=30){ if(bccomp($tax,0,5)){ $has_tax = 'TRUE'; }else{ $has_tax = 'FALSE'; } $vars["x_line_item"]=array(substr(strip_tags(JText::_('HIKASHOP_FINAL_TOTAL')),0,30).'&lt;&#124;&gt;'.substr(strip_tags(JText::_('HIKASHOP_FINAL_TOTAL')),0,30).'&lt;&#124;&gt;&lt;&#124;&gt;1&lt;&#124;&gt;'.round($order-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value,(int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']).'&lt;&#124;&gt;'.$has_tax); }

after the code: Code:

if(!empty($order-&gt;order_payment_price)){ $vars["x_line_item"][]='payment&lt;&#124;&gt;'.JText::_('HIKASHOP_PAYMENT').'&lt;&#124;&gt;&lt;&#124;&gt;1&lt;&#124;&gt;'.round($order-&gt;order_payment_price,(int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']).'&lt;&#124;&gt;N'; }

in the file plugins/hikashoppayment/authorize/authorize.php and that should avoid the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzIxNDAtYXV0aG9yaXplLWFwaS1lcnJvci0yNzEtbWF4aW11bS1pdGVtcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.115 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
