You are here

function commerce_cardonfile_commerce_payment_transaction_status_info in Commerce Card on File 7.2

Implements hook_commerce_payment_transaction_status_info().

File

./commerce_cardonfile.module, line 1563
Supports card on file functionality for credit card payment methods by associating card data reference IDs from payment gateways with user accounts.

Code

function commerce_cardonfile_commerce_payment_transaction_status_info() {
  $statuses = array();
  foreach (commerce_cardonfile_charge_card_failure_status_code_options() as $status_name => $title) {
    $statuses[$status_name] = array(
      'status' => $status_name,
      'title' => $title,
      'icon' => drupal_get_path('module', 'commerce_payment') . '/theme/icon-failure.png',
      'total' => TRUE,
    );
  }
  return $statuses;
}