It's possible to have products with negative prices (normally this is done with line items, but the site I'm working does not do it this way). Cybersource reports errors if you try charge an order with this condition. It's the same error as in #486242: CyberSource module is not compatible with discount line items.

Here's a patch that handles this issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kleinmp’s picture

FileSize
1.81 KB
kleinmp’s picture

FileSize
1.12 KB
longwave’s picture

Status: Active » Needs review
TR’s picture

Status: Needs review » Needs work
Issue tags: -cybersource

Every payment solution I've ever used disallows negative product prices. It doesn't seem right to me to 'fix' it this way. How are the prices negative? Ubercart doesn't allow you to enter a negative price for a product. Are you using a coupon module or something?

Just fixing Cybersource and not touching the other Ubercart payment methods also seems wrong, since if this is an Ubercart problem then other payment methods should be affected as well.

TR’s picture

Status: Needs work » Closed (won't fix)