function uc_stripe_install in Ubercart Stripe 6.2
Same name and namespace in other branches
- 8.3 uc_stripe.install \uc_stripe_install()
- 8.2 uc_stripe.install \uc_stripe_install()
- 6 uc_stripe.install \uc_stripe_install()
- 7.3 uc_stripe.install \uc_stripe_install()
- 7 uc_stripe.install \uc_stripe_install()
- 7.2 uc_stripe.install \uc_stripe_install()
Implements hook_install().
File
- ./
uc_stripe.install, line 72 - 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 Ubercart and NOT the stripe gateway
variable_set('uc_recurring_trigger_renewals', TRUE);
// For PCI-DSS compatibility, skip review must be enabled so cc data doesn't
// get to server.
variable_set('uc_checkout_skip_review', 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);
}