Skip to main content

Authorize API error 271 Maximum Items

More
11 years 11 months ago #174569 by crbender
-- 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 or Create an account to join the conversation.

More
11 years 11 months ago #174572 by nicolas
Hi,

Add the code:
Code:
if(count($vars["x_line_item"])>=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).'<|>'.substr(strip_tags(JText::_('HIKASHOP_FINAL_TOTAL')),0,30).'<|><|>1<|>'.round($order->cart->full_total->prices[0]->price_value,(int)$this->currency->currency_locale['int_frac_digits']).'<|>'.$has_tax); }
after the code:
Code:
if(!empty($order->order_payment_price)){ $vars["x_line_item"][]='payment<|>'.JText::_('HIKASHOP_PAYMENT').'<|><|>1<|>'.round($order->order_payment_price,(int)$this->currency->currency_locale['int_frac_digits']).'<|>N'; }
in the file plugins/hikashoppayment/authorize/authorize.php and that should avoid the problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.132 seconds
Powered by Kunena Forum