- 🇺🇸United States rhovland Oregon
I don't think negative amounts are allowed. Besides the implication of a negative number in a payment system, the API simply does not allow it
Go here:
https://developer.authorize.net/api/reference/index.html#payment-transac...
Click on "Request Field Description" below the API example and scroll to unitPriceYou can also try editing the request JSON in the example to a negative number and hit send. You'll get an error response.
So since authorize.net does not support negative numbers how is the module supposed to handle negative item prices?
Should it set the price to 0? Which is the worst outcome? A transaction failure or line items not adding up? Are you trying to make payments for negative balance orders or is this negative line item a "discount"? Why not use adjustments for that?
- 🇮🇳India mudassir5544
Hi,
I have the same issue.
I am using the Line Item (Order Item) for discounts.REASON : In my client website It was needed to add discounts on only those order types whose field_category value matched with the Discount Product field_category value. Therefore we are using a separate product type for the discount purpose, where we are creating multiple discount products.
And this requirement could not be achieved by the "Adjustments".QUESTION : Is there any way that we can tell the commerce_authnet to ignore the line item negative price. Since the Order total is positive it can be consider a valid price I think.
Please help ASAP.
Thankyou for the help!
- Status changed to Active
8 months ago 3:43pm 30 April 2024