You are here

function uc_authorizenet_update_2 in Ubercart 5

File

payment/uc_authorizenet/uc_authorizenet.install, line 51
Handles installing, uninstalling, and updating Authorize.net settings.

Code

function uc_authorizenet_update_2() {

  // Change the variable used to define the default transaction type.
  if (variable_get('uc_authnet_aim_txn_type', 'AUTH_CAPTURE') == 'AUTH_CAPTURE') {
    variable_set('uc_pg_authorizenet_cc_txn_type', UC_CREDIT_AUTH_CAPTURE);
  }
  else {
    variable_set('uc_pg_authorizenet_cc_txn_type', UC_CREDIT_AUTH_ONLY);
  }
  variable_del('uc_authnet_aim_txn_type');
  return array();
}