function commerce_braintree_tr_redirect_form_validate in Commerce Braintree 7.3
Same name and namespace in other branches
- 7.2 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'
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;
}
}