function commerce_payleap_cof_settings_form in Commerce Payleap 7
Payment method callback: settings form.
File
- ./
commerce_payleap.module, line 125 - Implements PayLeap payment services for use in Drupal Commerce.
Code
function commerce_payleap_cof_settings_form($settings = NULL) {
// Merge default settings into the stored settings array.
$settings = (array) $settings + commerce_payleap_default_settings();
$form = commerce_payleap_base_settings_form($settings);
// COF support in conjunction with AIM requires the Card on File module.
$form['vendor_number'] = array(
'#type' => 'textfield',
'#title' => t('Vendor number'),
'#description' => t('Required for Card on File and recurring payments functionality'),
'#default_value' => $settings['vendor_number'],
'#required' => TRUE,
'#weight' => -2,
);
return $form;
}