Commit 6d41b4fa authored by jenlampton's avatar jenlampton

Add a warning about a sandbox key expiring in 24 hours.

parent 6637b45d
......@@ -10,6 +10,7 @@
function authorizenetwebform_admin_settings() {
$form = array();
$mode = variable_get('authorizenetwebform_mode', 'main');
$form['authorizenetwebform_mode'] = array(
'#type' => 'radios',
'#title' => t('Transaction mode'),
......@@ -18,7 +19,7 @@ function authorizenetwebform_admin_settings() {
'main' => t('Live account'),
'test' => t('Test (or Sandbox) account'),
),
'#default_value' => variable_get('authorizenetwebform_mode', 'main'),
'#default_value' => $mode,
);
// Add description text for URL choices.
$form['authorizenetwebform_mode']['test']['#description'] = t('Posts to https://test.authorize.net/gateway/transact.dll');
......@@ -51,6 +52,9 @@ function authorizenetwebform_admin_settings() {
'#description' => t('To generate the Client Key, log in to the Merchant Interface as an Administrator and navigate to Account > Settings > Security Settings > General Security Settings > Manage Public Client Key. If the Public Client Key does not yet exist, answer your security question to generate the key.'),
'#default_value' => variable_get('authorizenetwebform_client_key', ''),
);
if ($mode == 'test') {
$form['login']['authorizenetwebform_client_key']['#description'] .= t(' <strong>A SANDBOX Public Client Key is only good for 24 hours.</strong>');
}
$form['field_settings'] = array(
'#type' => 'fieldset',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment