commerce_stripe.install in Commerce Stripe 8
Same filename and directory in other branches
Contains install and update functions for Commerce Stripe.
File
commerce_stripe.installView source
<?php
/**
* @file
* Contains install and update functions for Commerce Stripe.
*/
/**
* Implements hook_requirements().
*/
function commerce_stripe_requirements($phase) {
$requirements = [];
if ($phase == 'install') {
if (!class_exists('\\Stripe\\Stripe')) {
$requirements['commerce_stripe_library'] = [
'description' => t('Commerce Stripe requires the stripe/stripe-php library.'),
'severity' => REQUIREMENT_ERROR,
];
}
}
return $requirements;
}
Functions
Name | Description |
---|---|
commerce_stripe_requirements | Implements hook_requirements(). |