function commerce_braintree_cof_redirect_form_validate in Commerce Braintree 7
Implements hook_redirect_form_validate().
File
- ./
commerce_braintree.commerce_braintree_cof.inc, line 109 - Include payment method settings callback, redirect form callbacks...
Code
function commerce_braintree_cof_redirect_form_validate($order, $payment_method) {
if ($feedback = commerce_braintree_get_feedback()) {
// Process the transaction based on the parameters received.
commerce_braintree_cof_process_transaction($order, $payment_method, $feedback);
return TRUE;
}
}