You are here

function uc_stripe_install in Ubercart Stripe 7.3

Same name and namespace in other branches
  1. 8.3 uc_stripe.install \uc_stripe_install()
  2. 8.2 uc_stripe.install \uc_stripe_install()
  3. 6.2 uc_stripe.install \uc_stripe_install()
  4. 6 uc_stripe.install \uc_stripe_install()
  5. 7 uc_stripe.install \uc_stripe_install()
  6. 7.2 uc_stripe.install \uc_stripe_install()

Implements hook_install().

File

./uc_stripe.install, line 85
Installation file for the uc_stripe module.

Code

function uc_stripe_install() {

  // This turns ON the uc_recurring cron task to renew. We want this
  // ON because the renewal payments are handled by uc_recurring and NOT the stripe gateway
  variable_set('uc_recurring_trigger_renewals', TRUE);

  // Stripe does cc validation, so uc_credit must not... especially because
  // uc_credit gets a bogus cc number.
  variable_set('uc_credit_validate_numbers', FALSE);
}