function commerce_braintree_hostedfields_commerce_payment_method_info in Commerce Braintree 7.2
Same name and namespace in other branches
- 7.3 modules/commerce_braintree_hostedfields/commerce_braintree_hostedfields.module \commerce_braintree_hostedfields_commerce_payment_method_info()
Implements hook_commerce_payment_method_info().
File
- modules/
commerce_braintree_hostedfields/ commerce_braintree_hostedfields.module, line 33 - Provides integration with Braintree Hosted Fields.
Code
function commerce_braintree_hostedfields_commerce_payment_method_info() {
$payment_methods = array();
$payment_methods['braintree_hostedfields'] = array(
'base' => 'commerce_braintree_hostedfields',
'title' => t('Braintree Hosted Fields'),
'short_title' => t('Braintree Hosted Fields'),
'display_title' => t('Credit card'),
'description' => t('Integrates with Braintree Hosted Fields for secure on-site credit card payment.'),
'terminal' => TRUE,
'offsite' => FALSE,
'callbacks' => array(
'submit_form_validate' => 'commerce_braintree_js_form_validate',
'submit_form_submit' => 'commerce_braintree_js_form_submit',
),
'cardonfile' => array(
'create form callback' => 'commerce_braintree_js_cardonfile_form',
'update form callback' => 'commerce_braintree_js_cardonfile_form',
'create callback' => 'commerce_braintree_js_cardonfile_form_submit',
'update callback' => 'commerce_braintree_js_cardonfile_form_submit',
'delete callback' => 'commerce_braintree_cardonfile_update_delete',
'charge callback' => 'commerce_braintree_cardonfile_charge',
),
);
return $payment_methods;
}