function uc_authorizenet_payment_gateway_settings_submit in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_authorizenet/uc_authorizenet.module \uc_authorizenet_payment_gateway_settings_submit()
- 7.3 payment/uc_authorizenet/uc_authorizenet.module \uc_authorizenet_payment_gateway_settings_submit()
File
- payment/
uc_authorizenet/ uc_authorizenet.module, line 216 - Process payments using Authorize.net. Supports AIM and ARB.
Code
function uc_authorizenet_payment_gateway_settings_submit($form_id, $form_values) {
// If CC encryption has been configured properly.
if ($key = uc_credit_encryption_key()) {
// Setup our encryption object.
$crypt = new uc_encryption_class();
// Encrypt the Login ID, Transaction key, and MD5 Hash.
if (!empty($form_values['uc_authnet_md5_hash'])) {
variable_set('uc_authnet_md5_hash', $crypt
->encrypt($key, $form_values['uc_authnet_md5_hash']));
}
// Store any errors.
uc_store_encryption_errors($crypt, 'uc_authorizenet');
}
}