You are here

function hook_payment_status_change in Payment 7

Executes when a payment status is being set.

Parameters

Payment $payment:

PaymentStatusItem $previous_status_item: The status the payment had before it was set.

Return value

NULL

See also

Payment::setStatus()

1 function implements hook_payment_status_change()

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

payment_test_payment_status_change in tests/payment_test/payment_test.module
Implements hook_payment_status_change().
1 invocation of hook_payment_status_change()
Payment::setStatus in ./payment.classes.inc
Set the payment status.

File

./payment.api.php, line 120
Hook documentation.

Code

function hook_payment_status_change(Payment $payment, PaymentStatusItem $previous_status_item) {

  // Notify the site administrator, for instance.
}