Commit 4e3e657f authored by jenlampton's avatar jenlampton

Assume live mode not sandbox.

parent da9b40f9
......@@ -18,7 +18,7 @@ function authorizenetwebform_admin_settings() {
'main' => t('Live account'),
'test' => t('Test (or Sandbox) account'),
),
'#default_value' => variable_get('authorizenetwebform_url', 'test'),
'#default_value' => variable_get('authorizenetwebform_url', 'main'),
);
// Add description text for URL choices.
$form['authorizenetwebform_url']['test']['#description'] = t('Posts to https://test.authorize.net/gateway/transact.dll');
......
......@@ -155,7 +155,7 @@ function authorizenetwebform_form_webform_client_form_alter(&$form, &$form_state
// Add accept.js.
$js_url = 'https://js.authorize.net/v1/Accept.js';
if (variable_get('authorizenetwebform_url', 'test') == 'test') {
if (variable_get('authorizenetwebform_url', 'main') == 'test') {
$js_url = 'https://jstest.authorize.net/v1/Accept.js';
}
......
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