Authorize.net Getting error "A valid amount is required." In our project we have used Commerce Authorize.Net module. We have not added any discount. No coupons are applied yet still when we proceed to checkout in testing mode we are always getting error as "A valid amount is required.". Our product price is $17.95 and when we get response from Authorize.net we are getting price as $-99.05 and hence payment is declined.

We have also used PayPal for payment method and it is working fine and giving proper amount for same product.

How can we solve this issue?
I got the solution of this issue.

When we were working in local we have removed orders from CMS before moving database to Dev site. But because of dependency some orders were not removed completely. When Authorize.net finds such orders it has treating them as pending order and was adding payment in new order as Unknown payment method.


Some how this was adding extra amounts to final payment of new orders and was creating negative amount.

To resolve this I have deleted all my dummy orders from CMS and also from Table "commerce_payment_transaction".

This has resolved my issue.
One of the Drupal's Stackexchange answer helped me to resolve this issue, Why would just adding a product to cart create a payment with method type &quot;unknown&quot; and credit card of &quot;4111--------1111&quot;