You are here

function commerce_cardonfile_permission in Commerce Card on File 7

Same name and namespace in other branches
  1. 7.2 commerce_cardonfile.module \commerce_cardonfile_permission()

Implements hook_permission().

File

./commerce_cardonfile.module, line 130
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_permission() {
  return array(
    'configure cardonfile' => array(
      'title' => t('Configure Card on File'),
      'description' => t('Update the Card on File configuration in the Store back end.'),
      'restrict access' => TRUE,
    ),
    'administer card data' => array(
      'title' => t('Administer card data'),
      'description' => t("Access and update any user's stored card data."),
      'restrict access' => TRUE,
    ),
    'manage own card data' => array(
      'title' => t('Manage own card data'),
      'description' => t('Manage your own stored card data via a tab on your user account page.'),
    ),
  );
}