You are here

function uc_stripe_recurring_info in Ubercart Stripe 7.2

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 uc_stripe.module \uc_stripe_recurring_info()

Implements hook_recurring_info() to integrate with uc_recurring

Return value

mixed

File

./uc_stripe.module, line 115
A stripe.js PCI-compliant payment gateway Forked from Bitcookie's work (thanks!) which was posted at http://bitcookie.com/blog/pci-compliant-ubercart-and-stripe-js from discussion in the uc_stripe issue queue, https://www.drupal.org/node/1467886

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',
    '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;
}