We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Authorize.net API bug with negative line items

Expresso Store

Derek Hogue's avatar
Derek Hogue
317 posts
one week ago
Derek Hogue's avatar Derek Hogue

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.