You are here

function hook_commerce_braintree_build_transaction_message_alter in Commerce Braintree 7.3

Same name and namespace in other branches
  1. 7.2 commerce_braintree.api.php \hook_commerce_braintree_build_transaction_message_alter()

Allows other modules to alter the transaction message.

Parameters

$message string: The transaction message built by commerce_braintree.

$response object: The commerce order object that built the sale.

1 invocation of hook_commerce_braintree_build_transaction_message_alter()
commerce_braintree_build_payment_transaction_message in ./commerce_braintree.module
Builds the message that's stored with the payment transaction.

File

./commerce_braintree.api.php, line 30
Provides hook documentation for this module.

Code

function hook_commerce_braintree_build_transaction_message_alter(&$message, $response) {
  $message = t('The transaction was successful');
}