Hey folks - the Authorize.net API does not allow negative line items, so when there is a discount in an order, the API call fails. e.g.
Error: The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:unitPrice' element is invalid - The value '-506.25' is invalid according to its datatype 'Decimal' - The MinInclusive constraint failed.
I fixed this by adding a getItems() method to the gateway which simply returns false, but you may want to fix it another way.
Thanks for bringing this to light! I totally see where you’re coming from regarding the negative line items issue. It’s definitely a tricky bug that could cause real headaches. However, have you considered how tweaking the integration might help handle those cases better? Just a thought! speedstars
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.