You are here

function hook_commerce_payment_transaction_update in Commerce Core 7

Allows you to act when a transaction is updated.

If you want to perform an action when a transaction changes states, you can use this hook to do so. You can load the original transaction here and compare.

Parameters

$transaction: The transaction being updated.

1 function implements hook_commerce_payment_transaction_update()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

commerce_payment_commerce_payment_transaction_update in modules/payment/commerce_payment.module
Implements hook_commerce_payment_transaction_update().

File

modules/payment/commerce_payment.api.php, line 474
Hooks provided by the Payment module.

Code

function hook_commerce_payment_transaction_update($transaction) {

  // No example.
}