function uc_stripe_settings_form in Ubercart Stripe 6
Same name and namespace in other branches
- 6.2 uc_stripe.module \uc_stripe_settings_form()
- 7.3 uc_stripe.module \uc_stripe_settings_form()
- 7 uc_stripe.module \uc_stripe_settings_form()
- 7.2 uc_stripe.module \uc_stripe_settings_form()
Callback for payment gateway settings.
1 string reference to 'uc_stripe_settings_form'
- uc_stripe_payment_gateway in ./
uc_stripe.module - Implements hook_payment_gateway().
File
- ./
uc_stripe.module, line 263 - A module used for Stripe. Developed by Victor Quinn for Health for Hackers (http://www.healthforhackers.com)
Code
function uc_stripe_settings_form() {
$form['uc_stripe_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Stripe settings'),
);
$form['uc_stripe_settings']['uc_stripe_api_key_dev'] = array(
'#type' => 'textfield',
'#title' => t('Stripe API Key (Development)'),
'#default_value' => variable_get('uc_stripe_api_key_dev', ''),
'#description' => t('Your Development Stripe API Key. Must be the "secret" key, not the "publishable" one.'),
);
$form['uc_stripe_settings']['uc_stripe_api_key_prod'] = array(
'#type' => 'textfield',
'#title' => t('Stripe API Key (Production)'),
'#default_value' => variable_get('uc_stripe_api_key_prod', ''),
'#description' => t('Your Production Stripe API Key. Must be the "secret" key, not the "publishable" one.'),
);
$form['uc_stripe_settings']['uc_stripe_testmode'] = array(
'#type' => 'checkbox',
'#title' => t('Test mode'),
'#description' => 'Testing Mode: Stripe will use the development API key to process the transaction so the card will not actually be charged.',
'#default_value' => variable_get('uc_stripe_testmode', TRUE),
);
$form['uc_stripe_settings']['uc_stripe_poweredby'] = array(
'#type' => 'checkbox',
'#title' => t('Powered by Stripe'),
'#description' => 'Show "powered by Stripe" in shopping cart.',
'#default_value' => variable_get('uc_stripe_poweredby', FALSE),
);
if (module_exists('uc_recurring')) {
$form['uc_stripe_settings']['uc_stripe_cartinfo'] = array(
'#type' => 'checkbox',
'#title' => t('Show additional info about recurring item in shopping cart'),
'#default_value' => variable_get('uc_stripe_cartinfo', TRUE),
);
}
return $form;
}