{"issue":{"state":"open","created_at":"2011-12-08T00:03:04Z","updated_at":"2011-12-08T00:03:04Z","user":{"gravatar_id":"799709ff97abec59336076351d395cfa","id":1215823,"url":"https://api.github.com/users/HannahHill","login":"HannahHill","avatar_url":"https://secure.gravatar.com/avatar/799709ff97abec59336076351d395cfa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"I think there's a possible bug with the Authorize.net extension. \r\n\r\nWhen a coupon is created for the price of a product after tax, it appears to reduce my cart to zero. However, when the customer attempts to complete the transaction, Woo asks Authorize to process it, and Authorize can't, saying it's not for a valid amount. \r\n\r\nGenuine zero-balance transactions don't see to be an issue. When a pre-tax coupon is added for the pre-tax price of a book - reducing the cart to exactly zero, with zero tax - Woo does not ask Authorize to process the transaction. The transaction simply goes through without Authorize.\r\n\r\nA possible theory explaining what's happening is Woo is not rounding properly when calculating taxes. A coupon for the price of the product plus tax doesn't really reduce the cart to zero; it reduces it to $0.001. So it may be that Woo is actually seeing a $0.001 balance, so it asks Authorize to process the payment. Authorize, however, can't process a payment of $0.001 (or sees it as a zero balance), and rejects it. \r\n\r\nNote that when a coupon is made for (for example) $2.94, the $2.93 purchase goes through just fine - Woo does not involve Authorize. \r\n\r\nSo, it looks like this is a bug with the Authorize.net extension. Authorize doesn't process zero-balance transactions, but the system shouldn't ask it to. \r\n\r\nThanks!","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2482021,"labels":[],"number":342,"title":"Authorize.net bug","html_url":"https://github.com/woothemes/woocommerce/issues/342","closed_at":null,"url":"https://api.github.com/repos/woothemes/woocommerce/issues/342","milestone":null},"action":"opened"}