All transactions fail with "Payment failed for order nnnn: Credit card payment declined:

Array ( [errorCode] => 0 [errorName] => Adapter error [errorMessage] => Datatype mismatch for salesTax. Expected numeric got alphanumeric )", when UC_Coupon in installed and a coupon code is applied when using a Virtual Merchant Gateway and the coupon discount is applied. 

The transaction amount that is passed to the gateway is $0.  It doesn't matter if there is a sales taxable item in the cart at checkout.  

Comments

wodenx’s picture

Status: Active » Postponed (maintainer needs more info)

I don't have a virtual merchant gateway account, so it will be difficult for me to debug this. I assume you are using http://drupal.org/project/virtualmerchant, is that correct? After a quick look at the code it's hard to see how uc_coupon could be affecting this. That module sets the salestax explicitly to 0, doesn't send prices for individual products and line items, just the order total. I would consider taking this up with the maintainer of that module.