You are here

function stripe_customer_token_info in Stripe 7

Implements hook_token_info().

File

stripe_customer/stripe_customer.tokens.inc, line 11
Contains token integration.

Code

function stripe_customer_token_info() {
  $info['types']['stripe_customer'] = array(
    'name' => t('Stripe'),
    'description' => t('Tokens related to Stripe.'),
  );
  $info['tokens']['stripe_customer']['customer_id'] = array(
    'name' => t('Customer ID'),
    'description' => t('The Customer Id'),
  );
  $info['tokens']['stripe_customer']['default_source'] = array(
    'name' => t('Default source'),
    'description' => t('The token of the default source for this Customer.'),
  );
  $info['tokens']['stripe_customer']['owner'] = array(
    'name' => t('Drupal account'),
    'description' => t('The Drupal User associated with this Customer.'),
    'type' => 'user',
  );
  $info['tokens']['stripe_customer']['email'] = array(
    'name' => t('Email'),
    'description' => t('The Customer email address on the account.'),
  );
  $info['tokens']['stripe_customer']['metadata'] = array(
    'name' => t('Customer Metadata'),
    'description' => t('The Metadata currently on the Customer.'),
  );
  $info['tokens']['stripe_customer']['currency'] = array(
    'name' => t('Currency'),
    'description' => t('The Customer preferred currency.'),
  );
  $info['tokens']['stripe_customer']['created'] = array(
    'name' => t('Created Date'),
    'description' => t('The date the Customer was created on Stripe.'),
    'type' => 'date',
  );
  $info['tokens']['stripe_customer']['account_balance'] = array(
    'name' => t('Account balance'),
    'description' => t('The balance on this customer.'),
  );
  return $info;
}