Postponed (maintainer needs more info)
Project:
Auriga e-Payment for Ubercart
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
16 Jul 2010 at 09:52 UTC
Updated:
8 Sep 2011 at 13:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
henrrrik commentedSounds like some kind of configuration problem. The module adds up all the line items and sends the total to Auriga, VAT isn't (and IIRC can't be) reported separately to the payment gateway.
Comment #2
tracer76 commentedFigured out that shipping adds cost twice at review and auriga page.
Maybe it will work to reinstall the module and delete Tax, vat tables from database ?
Comment #3
henrrrik commentedI'm not sure, but I wouldn't manually wipe anything from the DB.
Comment #4
Christofer Roth commentedI'm new to Ubercart, but I'm guessing the problem is in the loop that starts on line 196 in uc_auriga.module
The $item['amount'] doesn't seem safe to just add up. In my case it contained subtotal including taxes but excluding shipping + taxes + shipping excluding taxes. So taxes where added twice on the items.
Since the amount already is calculated and exists in the $order object as $order->order_total you could probably just change the code above to the following:
Also, I haven't tried this, but maybe you could use: uc_order_get_total($order) - it also seems to return the correct amount.