Active
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Payment
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2011 at 17:15 UTC
Updated:
18 May 2012 at 01:47 UTC
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
Comment #1
longwaveI guess nobody has needed it until now. If you want to submit a patch for this, feel free!
Comment #2
tr commentedNew features should go into 7.x-3.x first.