function commerce_braintree_commerce_payment_method_info in Commerce Braintree 7.3
Same name and namespace in other branches
- 7 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 179 - Integrates Braintree Transparent Redirect with Drupal Commerce.
Code
function commerce_braintree_commerce_payment_method_info() {
$payment_methods['braintree_tr'] = array(
'title' => t('Braintree Transparent Redirect'),
'short_title' => t('Braintree TR'),
'display_title' => t('Credit card'),
'description' => t('Integrates with Braintree Transparent Redirect for secure on-site credit card payment.'),
'terminal' => FALSE,
'offsite' => TRUE,
'offsite_autoredirect' => FALSE,
'callbacks' => array(
'settings_form' => 'commerce_braintree_settings_form',
'redirect_form' => 'commerce_braintree_tr_redirect_form',
'redirect_form_validate' => 'commerce_braintree_tr_redirect_form_validate',
),
'cardonfile' => array(
'update callback' => 'commerce_braintree_cardonfile_update_delete',
'delete callback' => 'commerce_braintree_cardonfile_update_delete',
'charge callback' => 'commerce_braintree_cardonfile_charge',
),
);
return $payment_methods;
}