You are here

function commerce_payment_transaction_status_load in Commerce Core 7

Returns the payment transaction status object for the specified status.

Parameters

$status: The transaction status string.

Return value

An object containing the transaction status information or FALSE if the requested status is not found.

2 calls to commerce_payment_transaction_status_load()
commerce_payment_handler_field_status::render in modules/payment/includes/views/handlers/commerce_payment_handler_field_status.inc
Render the field.
commerce_payment_tokens in modules/payment/commerce_payment.tokens.inc
Implements hook_tokens().

File

modules/payment/commerce_payment.module, line 858
Defines the payment system and checkout integration.

Code

function commerce_payment_transaction_status_load($status) {
  $transaction_statuses = commerce_payment_transaction_statuses();
  return !empty($transaction_statuses[$status]) ? $transaction_statuses[$status] : FALSE;
}