You are here

function commerce_braintree_commerce_checkout_pane_info_alter in Commerce Braintree 7

Same name and namespace in other branches
  1. 7.3 commerce_braintree.module \commerce_braintree_commerce_checkout_pane_info_alter()
  2. 7.2 commerce_braintree.module \commerce_braintree_commerce_checkout_pane_info_alter()

Implements hook_commerce_checkout_pane_info_alter().

File

./commerce_braintree.module, line 221
Implementations of the Braintree payment gateway (http://braintreepayments.com) for 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';
}