OK, I've found my problem, and the issue is that I need to send each tax
amount to my gateway (I send a <Tax1>4.52</Tax1><Tax2>2.15</Tax2>), so
rounding in the end is not working.
The problem is that the order tax total that gets set in the tax processor
(satchmo-canada-tax) rounds up ((sum+of+taxes)*subtotal), so there's the
one-cent different from the order.
so as you said, the right thing to do would be not rounding until the
request to the gateway, which in authorizenet is done like this:
def get_standard_charge_data(self, amount=None, authorize=False):
"""
Build the dictionary needed to process a credit card charge
"""
order = self.order
settings = self.settings
order_data = {}
if amount is None: # this is usually true, so this gets processed
amount = order.balance
balance = trunc_decimal(amount, 2)
But what do I do with partial taxes?
I'll try requesting the taxes without truncating, and see if the processor
does the truncating the same way we do
--
"The whole of Japan is pure invention. There is no such country, there are
no such people" --Oscar Wilde
|_|0|_|
|_|_|0|
|0|0|0|
(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.