function commerce_authnet_commerce_payment_method_info in Commerce Authorize.Net 7
Implements hook_commerce_payment_method_info().
File
- ./
commerce_authnet.module, line 185 - Implements Authorize.Net payment services for use in Drupal Commerce.
Code
function commerce_authnet_commerce_payment_method_info() {
$payment_methods = array();
$payment_methods['authnet_aim'] = array(
'base' => 'commerce_authnet_aim',
'title' => t('Authorize.Net AIM - Credit Card'),
'short_title' => t('Authorize.Net CC'),
'display_title' => t('Credit card'),
'description' => t('Integrates Authorize.Net Advanced Integration Method for card not present CC transactions.'),
'cardonfile' => array(
'create callback' => 'commerce_authnet_cim_cardonfile_create',
'charge callback' => 'commerce_authnet_cim_cardonfile_charge',
'update callback' => 'commerce_authnet_cim_cardonfile_update',
'delete callback' => 'commerce_authnet_cim_cardonfile_delete',
),
);
$payment_methods['authnet_acceptjs'] = array(
'base' => 'commerce_authnet_acceptjs',
'title' => t('Authorize.Net Accept.JS - Credit Card'),
'short_title' => t('Authorize.Net Accept.JS'),
'display_title' => t('Credit card'),
'description' => t('Integrates Authorize.Net Accept.JS for card not present CC transactions.'),
'file' => 'includes/commerce_authnet.acceptjs.inc',
'cardonfile' => array(
'create callback' => 'commerce_authnet_acceptjs_cardonfile_create',
'charge callback' => 'commerce_authnet_cim_cardonfile_charge',
'update callback' => 'commerce_authnet_cim_cardonfile_update',
'delete callback' => 'commerce_authnet_cim_cardonfile_delete',
),
);
return $payment_methods;
}