You are here

function uc_stripe_recurring_info in Ubercart Stripe 7

Same name and namespace in other branches
  1. 6.2 uc_stripe.module \uc_stripe_recurring_info()
  2. 6 uc_stripe.module \uc_stripe_recurring_info()
  3. 7.3 uc_stripe.module \uc_stripe_recurring_info()
  4. 7.2 uc_stripe.module \uc_stripe_recurring_info()

Implements hook_recurring_info().

File

./uc_stripe.module, line 51
A module used for processing payments with Stripe.

Code

function uc_stripe_recurring_info() {
  $items['uc_stripe'] = array(
    'name' => t('Stripe'),
    'payment method' => 'credit',
    'module' => 'uc_recurring',
    'fee handler' => 'uc_stripe',
    'process callback' => 'uc_stripe_process_payment',
    'renew callback' => 'uc_stripe_renew',
    'cancel callback' => 'uc_stripe_cancel',
    'own handler' => FALSE,
    'menu' => array(
      'charge' => UC_RECURRING_MENU_DEFAULT,
      'edit' => UC_RECURRING_MENU_DEFAULT,
      'cancel' => UC_RECURRING_MENU_DEFAULT,
    ),
  );
  return $items;
}