Is there a reason something like this isn't in uc_authorizenet?
http://www.ubercart.org/forum/development/6171/credit_card_refunds#comme...

Quoting:

Why not just duplicate the code that supports UC_CREDIT_PRIOR_AUTH_CAPTURE in uc_authorizenet.module as follows:

if ($data['txn_type'] == UC_CREDIT_VOID) {
    $submit_data['x_trans_id'] = $data['auth_id'];
}

You could call it using uc_payment_process with

$success = uc_payment_process('credit',
    $order->order_id,
    $order->order_total,
    array('txn_type' => UC_CREDIT_VOID,
        'auth_id' => $auth_id),
    TRUE,
    NULL,
    FALSE
);

The ability to do voids with uc_payment_process was a lifesaver for me just now, but it requires something like the above hack to core Ubercart. Is there a better way to do this which explains why it isn't in the module like the above? Does this create some kind of problem?

Comments

longwave’s picture

I guess nobody has needed it until now. If you want to submit a patch for this, feel free!

tr’s picture

Version: 6.x-2.6 » 7.x-3.x-dev

New features should go into 7.x-3.x first.