You are here

function commerce_payleap_commerce_payment_method_info in Commerce Payleap 7

Implements hook_commerce_payment_method_info().

File

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

Code

function commerce_payleap_commerce_payment_method_info() {
  $payment_methods = array();
  $payment_methods['payleap_direct'] = array(
    'base' => 'commerce_payleap_direct',
    'title' => t('PayLeap direct processing'),
    'short_title' => t('PayLeap direct processing'),
    'display_title' => t('Credit card'),
    'description' => t('Integrates PayLeap direct processing payment, direct or delayed capture '),
  );
  $payment_methods['payleap_cof'] = array(
    'base' => 'commerce_payleap_cof',
    'title' => t('PayLeap - Card On File'),
    'short_title' => t('PayLeap Cardonfile'),
    'display_tiwtle' => t('Card on File'),
    'description' => t('PayLeap - Can be used for regular transaction with option to keep the credit card saved for re-use - requires the Card on File module '),
    'cardonfile' => array(
      'update callback' => 'commerce_payleap_cof_cardonfile_update_delete',
      'delete callback' => 'commerce_payleap_cof_cardonfile_update_delete',
    ),
  );
  return $payment_methods;
}