Setting the transaction type to auth only does not send the right code to beanstream. In function commerce_beanstream_transaction, 'trnType' should be 'PA' instead of 'P'. My solution was to use 'trnType' => $payment_method['settings']['txn_type'] == COMMERCE_CREDIT_AUTH_ONLY ? 'PA' : 'P'

Comments

tklawsuc created an issue. See original summary.

spiderman’s picture

Assigned: Unassigned » spiderman
Status: Active » Fixed

I've added this one-line patch, long overdue, but seemingly quite valid. Unfortunately, I don't have a testbed setup at present, so I'm committing this blindly trusting the minor change doesn't break anything badly. We really need to get some test coverage on this module tho!

spiderman’s picture

Version: 7.x-2.0-alpha1 » 7.x-2.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.