You are here

function commerce_braintree_get_feedback in Commerce Braintree 7.3

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

Return the query string that contains Braintree response, after a request.

2 calls to commerce_braintree_get_feedback()
commerce_braintree_tr_redirect_form_validate in ./commerce_braintree.module
Payment method callback: Braintree Transparent Redirect form validation.
commerce_braintree_update_card in ./commerce_braintree.module
Menu callback. Get the query from Braintree when updating a credit card.

File

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

Code

function commerce_braintree_get_feedback() {
  $feedback = FALSE;

  // drupal_get_query_parameters() excludes $_GET['q'].
  $params = drupal_get_query_parameters();
  if (!empty($params)) {

    // Rebuild the query string from the array.
    $feedback = drupal_http_build_query($params);
  }
  return $feedback;
}