You are here

function commerce_braintree_tr_redirect_form_validate in Commerce Braintree 7.2

Same name and namespace in other branches
  1. 7.3 commerce_braintree.module \commerce_braintree_tr_redirect_form_validate()

Payment method callback: Braintree Transparent Redirect form validation.

1 string reference to 'commerce_braintree_tr_redirect_form_validate'
commerce_braintree_commerce_payment_method_info in ./commerce_braintree.module
Implements hook_commerce_payment_method_info().

File

./commerce_braintree.module, line 412
Integrates Braintree Transparent Redirect with Drupal Commerce.

Code

function commerce_braintree_tr_redirect_form_validate($order, $payment_method) {
  if ($feedback = commerce_braintree_get_feedback()) {

    // Process the transaction based on the parameters received.
    commerce_braintree_tr_process_transaction($order, $payment_method, $feedback);
    return TRUE;
  }
}