You are here

function commerce_payleap_direct_settings_form in Commerce Payleap 7

Payment method callback: settings form.

File

./commerce_payleap.module, line 146
Implements PayLeap payment services for use in Drupal Commerce.

Code

function commerce_payleap_direct_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);
  $form['txn_type'] = array(
    '#type' => 'radios',
    '#title' => t('Default credit card transaction type'),
    '#description' => t('The default will be used to process transactions during checkout.'),
    '#options' => array(
      COMMERCE_CREDIT_AUTH_CAPTURE => t('Authorization and capture'),
      COMMERCE_CREDIT_AUTH_ONLY => t('Authorization only (requires manual or automated capture after checkout)'),
    ),
    '#default_value' => $settings['txn_type'],
  );
  return $form;
}