I have a customer who has a fair enough request. The "Customer ID" value sent from uc_authorizenet.module to Authorize.net is the Drupal user account number. My customer is using his own business database and every UC customer has been created with his business' customer account number.
I simply need to alter $order before being sent to auth.net in _uc_authorizenet_charge()
I tried using hook_order / submit, but the values are lost before hitting _uc_authorizenet_charge.
I can't use hook_order / save or otherwise save the value to the database because the stored order needs to use the uid for proper tracking and functionality.
So I'm left with a core hack inserting a hook in _uc_authorizenet_charge before the request is formed and sent to auth.net.
Is there any way to achieve this without a hack? If not, any chance (or how do I go about) getting a very useful hook put into uc_authorizenet.module to allow changing some $order values.
Note: this is also very useful for populating customer information from the Drupal profile. I am using this in the hook for first and last names and company name, etc...
