You are here

function commerce_sagepay_commerce_payment_method_info in Drupal Commerce SagePay Integration 7

Implements hook_commerce_payment_method_info().

File

./commerce_sagepay.module, line 210

Code

function commerce_sagepay_commerce_payment_method_info() {
  $payment_methods = array();
  $payment_methods['commerce_sagepay_form'] = array(
    'base' => 'commerce_sagepay_form',
    'title' => t('SagePay Form Integration'),
    'display_title' => t('Credit or Debit card (Form)'),
    'short_title' => t('SagePay'),
    'description' => t('Integration with SagePay using Form method.'),
    'active' => FALSE,
    'terminal' => FALSE,
    'offsite' => TRUE,
    'offsite_autoredirect' => TRUE,
    'callbacks' => array(),
    'file' => 'includes/commerce_sagepay_form.inc',
  );
  $payment_methods['commerce_sagepay_server'] = array(
    'title' => t('SagePay Server Integration'),
    'short_title' => t('SagePay Server'),
    'display_title' => t('Credit or Debit card (Server)'),
    'description' => t('Integration with SagePay using Server method.'),
    'active' => TRUE,
    'offsite' => TRUE,
    'terminal' => FALSE,
    'callbacks' => array(),
    'offsite_autoredirect' => FALSE,
    'file' => 'includes/commerce_sagepay_server.inc',
  );
  $payment_methods['commerce_sagepay_direct'] = array(
    'base' => 'commerce_sagepay_direct',
    'title' => t('SagePay Direct Integration'),
    'display_title' => t('Credit or Debit card (Direct)'),
    'short_title' => t('SagePay'),
    'description' => t('Integration with SagePay using Direct method.'),
    'active' => FALSE,
    'terminal' => TRUE,
    'offsite' => FALSE,
    'offsite_autoredirect' => FALSE,
    'callbacks' => array(),
    'file' => 'includes/commerce_sagepay_direct.inc',
  );
  return $payment_methods;
}