function commerce_braintree_commerce_payment_method_info in Commerce Braintree 7
Same name and namespace in other branches
- 7.3 commerce_braintree.module \commerce_braintree_commerce_payment_method_info()
- 7.2 commerce_braintree.module \commerce_braintree_commerce_payment_method_info()
Implements hook_commerce_payment_method_info().
File
- ./
commerce_braintree.module, line 28 - Implementations of the Braintree payment gateway (http://braintreepayments.com) for drupal commerce.
Code
function commerce_braintree_commerce_payment_method_info() {
$payment_methods['braintree'] = array(
'base' => 'commerce_braintree',
'file' => 'commerce_braintree.commerce_braintree.inc',
'title' => t('Braintree'),
'short_title' => t('Braintree'),
'display_title' => t('Credit Card'),
'description' => t('Provide integration with Braintree.'),
'terminal' => FALSE,
'offsite' => TRUE,
'offsite_autoredirect' => FALSE,
);
$payment_methods['braintree_cof'] = array(
'base' => 'commerce_braintree_cof',
'file' => 'commerce_braintree.commerce_braintree_cof.inc',
'title' => t('Braintree - Card On File'),
'short_title' => t('Braintree Cardonfile'),
'display_title' => t('Credit Card'),
'description' => t('Provide integration with Braintree (integrated with Commerce Cardonfile.'),
'terminal' => FALSE,
'offsite' => TRUE,
'offsite_autoredirect' => FALSE,
'cardonfile' => array(
'update callback' => 'commerce_braintree_cardonfile_update_delete',
'delete callback' => 'commerce_braintree_cardonfile_update_delete',
),
);
return $payment_methods;
}