Quote Originally Posted by apollowilcox View Post
We recently upgraded our site to ZC 2.1 and installed the most recent version of this great plug-in. We/ our customers are experiencing a recurring problem when trying to checkout and getting this error:

Customer Payment Transaction: Transaction Failed Error code : E00003 Error message : The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:unitPrice' element is invalid - The value '9.614609999999999' is invalid according to its datatype 'Decimal' - The FractionDigits constraint failed.

All of our list pricing is entered at 2 decimal points. Qty discounts are entered at 1 decimal point. The $9.61460999 is the resulting discount price for ordering a qty of 12. It is a 4.9% discount off the list price of $10.11.

It's not a one-off - it is a recurring issue - but not for every order.

Any ideas out there? thank you!
Timing is everything.. We think we found/ fixed it here, after struggling with it for a few days.
in file authorizenet_cim.php, around line 1199, changed: $lineItem1->setUnitPrice($items['final_price']);
to: $lineItem1->setUnitPrice(number_format($items['final_price'], 2, '.', ''));

Seems to have addressed it. Sorry to have posted this just a few minutes too early!