Commit 1597b1b0 authored by jenlampton's avatar jenlampton

Remove accept.js checkbox, and add better description text for Public Client Key field.

parent fda19328
......@@ -10,15 +10,6 @@
function authorizenetwebform_admin_settings() {
$form = array();
$form['authorizenetwebform_acceptjs'] = array(
'#type' => 'checkbox',
'#title' => t('Use JavaScript to process payments'),
'#description' => t('Minimize your PCI compliance requirements by sending payment data directly to Authorize.Net. Using !accept ensures that payment data will not reach your server.',
array('!accept' => l(t('Accept.js'), 'https://developer.authorize.net/api/reference/features/acceptjs.html'))),
'#default_value' => variable_get('authorizenetwebform_acceptjs', TRUE),
'#access' => FALSE,
);
$form['authorizenetwebform_url'] = array(
'#type' => 'radios',
'#title' => t('Transaction mode'),
......@@ -46,19 +37,14 @@ function authorizenetwebform_admin_settings() {
$form['login']['authorizenetwebform_transaction'] = array(
'#type' => 'textfield',
'#title' => t('Transaction key'),
'#description' => t('Enter your Authorize.Net Transaction Key. It will not be displayed here once it is entered, for security purposes. If you need to change it, please re-enter it.'),
'#description' => t('Enter your Authorize.Net Transaction Key. '),
'#default_value' => variable_get('authorizenetwebform_transaction', ''),
);
$form['login']['authorizenetwebform_client_key'] = array(
'#type' => 'textfield',
'#title' => t('Public Client Key'),
'#description' => t('Enter your Authorize.Net Transaction Key. It will not be displayed here once it is entered, for security purposes. If you need to change it, please re-enter it.'),
'#description' => t('<strong>Required for all 7.x-2.x versions of this module.</strong> 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', ''),
'#states' => array(
'visible' => array(
':input[name="authorizenetwebform_acceptjs"]' => array('checked' => TRUE),
),
),
);
$form['field_settings'] = array(
......
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