function commerce_braintree_commerce_checkout_pane_info_alter in Commerce Braintree 7.2
Same name and namespace in other branches
- 7.3 commerce_braintree.module \commerce_braintree_commerce_checkout_pane_info_alter()
- 7 commerce_braintree.module \commerce_braintree_commerce_checkout_pane_info_alter()
Implements hook_commerce_checkout_pane_info_alter().
File
- ./
commerce_braintree.module, line 566 - Integrates Braintree Transparent Redirect with Drupal Commerce.
Code
function commerce_braintree_commerce_checkout_pane_info_alter(&$checkout_panes) {
// Add custom validation to be able to save the values in session.
$checkout_panes['commerce_payment']['callbacks']['checkout_form_validate'] = '_commerce_braintree_commerce_payment_checkout_custom_validation';
}