You are here

function hook_payment_status_info in Payment 7

Defines payment statuses.

Return value

array An array with PaymentStatusInfo objects.

1 function implements hook_payment_status_info()

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

payment_payment_status_info in ./payment.payment.inc
Implements hook_payment_status_info().
1 invocation of hook_payment_status_info()
payment_statuses_info in ./payment.module
Gets payment statuses.

File

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

Code

function hook_payment_status_info() {
  return array(
    new PaymentStatusInfo(array(
      'description' => t('Foo payments are still being processed by Bar to guarantee their authenticity.'),
      'status' => PAYMENT_STATUS_FOO,
      'parent' => PAYMENT_STATUS_PENDING,
      'title' => t('Pending (waiting for Bar authentication)'),
    )),
  );
}