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