Commit 193700a9 authored by jenlampton's avatar jenlampton

Add a debug mode.

parent 9ce48393
......@@ -24,6 +24,13 @@ function authorizenetwebform_admin_settings() {
$form['authorizenetwebform_mode']['test']['#description'] = t('Posts to https://test.authorize.net/gateway/transact.dll');
$form['authorizenetwebform_mode']['main']['#description'] = t('Posts to https://secure.authorize.net/gateway/transact.dll');
$form['authorizenetwebform_debug'] = array(
'#type' => 'checkbox',
'#title' => t('Debug mode'),
'#description' => t('When enabled, the complete response from Auth.net will be stored.<br/>If the <em>Devel</em> module is enabled, the complete response from Auth.net will also be printed to the screen.'),
'#default_value' => variable_get('authorizenetwebform_debug', FALSE),
);
$form['login'] = array(
'#type' => 'fieldset',
'#title' => t('Authorize.net Login'),
......
......@@ -45,6 +45,7 @@ function authorizenetwebform_uninstall() {
variable_del('authorizenetwebform_custom_fields');
variable_del('authorizenetwebform_url');
variable_del('authorizenetwebform_client_key');
variable_del('authorizenetwebform_debug');
}
/**
......
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