You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see I sent two items, one item listed with TaxableAmount for $1.00 and the other for $3.99. TaxCollectable on the first is 0.09 and TaxCollectable on the second is 0.36. This means total tax collected should be $0.45. But for the order, it shows: AmountToCollect:0.44. The line item total sum (4.99) is the same as the submitted Amount. There is no shipping.
The side effect of this error is that if I store the tax collected by line item and refund each item individually to the user, the refund will be greater than the total amount paid by $0.01, which (sensibly) the payment process does not want to permit. (Nor do I.)
So: I could throw away "TaxCollectable" from the top level and use the sum of the line items, but no telling where the error came from and if that's the right fix.
The text was updated successfully, but these errors were encountered:
We had a lot of talk about this and ended up deciding that legally, tax math with refunds isn't commutative and you should expect to refund slightly more if you refund multiple times due to penny rounding. 🤷 It's a mess.
Here's what I got:
You can see I sent two items, one item listed with TaxableAmount for $1.00 and the other for $3.99. TaxCollectable on the first is 0.09 and TaxCollectable on the second is 0.36. This means total tax collected should be $0.45. But for the order, it shows:
AmountToCollect:0.44
. The line item total sum (4.99) is the same as the submitted Amount. There is no shipping.The side effect of this error is that if I store the tax collected by line item and refund each item individually to the user, the refund will be greater than the total amount paid by $0.01, which (sensibly) the payment process does not want to permit. (Nor do I.)
So: I could throw away "TaxCollectable" from the top level and use the sum of the line items, but no telling where the error came from and if that's the right fix.
The text was updated successfully, but these errors were encountered: